/* Single-page Entrepreneurship; all new rules are scoped to this page. */
.entrepreneurship-page .hero-lead { max-width: 49rem; }
.entrepreneurship-page .ep-content-grid { grid-template-columns: minmax(0, 1fr) minmax(14rem, 17rem); gap: clamp(2rem, 3.7vw, 3.5rem); }
.entrepreneurship-page .ep-article { max-width: none; min-width: 0; }
.ep-section { --ep-accent: var(--brand-green); scroll-margin-top: calc(var(--nav-height) + 1.5rem); }
.ep-accent-2 { --ep-accent: var(--brand-purple); }
.ep-accent-3 { --ep-accent: var(--brand-blue); }
.ep-section + .ep-section { margin-top: 4.5rem; padding-top: 3rem; border-top: 1px solid var(--color-line); }
.ep-section-heading { display: flex; align-items: baseline; gap: 1rem; margin-bottom: 1.7rem; }
.ep-article .ep-section-heading h2 { margin: 0; font-size: clamp(1.8rem, 2.5vw, 2.5rem); line-height: 1.23; }
.ep-article h3 { margin: 2.7rem 0 1rem; padding-top: .4rem; color: var(--ep-accent); font-size: clamp(1.25rem, 1.7vw, 1.55rem); line-height: 1.4; }
.ep-article .ep-section-heading + h3 { margin-top: 0; }
.ep-article h4 { margin: 1.85rem 0 .7rem; font-size: 1.04rem; line-height: 1.6; font-weight: 650; color: var(--color-text); }
.ep-article :is(h2,h3,h4,figure,[id]) { scroll-margin-top: calc(var(--nav-height) + 1.5rem); }
.ep-article p { margin-bottom: 1.1rem; }
.ep-article > :last-child { margin-bottom: 0; }
.ep-article strong { font-weight: 650; }
.ep-figure { margin: 2rem 0 2.5rem; min-width: 0; }
.ep-image-link { display: block; border: 1px solid #384947; border-radius: 10px; overflow: hidden; background: #071013; }
.ep-image-link:hover { border-color: var(--ep-accent); }
.ep-figure-image { display: block; width: 100%; max-width: 100%; height: auto; }
.ep-figure figcaption { margin-top: .8rem; color: var(--color-muted); font-size: .88rem; line-height: 1.65; }
.ep-figure figcaption strong { color: var(--color-body); }
.ep-article .ep-table-caption { margin: 1.8rem 0 .7rem; font-size: .94rem; line-height: 1.65; }
.ep-table-wrap { margin: 0 0 2rem; border: 1px solid #394340; border-radius: 10px; scrollbar-color: #5e7469 #111714; }
.ep-table-wrap > table.ep-table { width: 100%; min-width: 560px; margin: 0; }
.ep-table-wide > table.ep-table { min-width: 1000px; }
.ep-table :is(th,td) { padding: .95rem 1rem; border-bottom: 1px solid #343e39; font-size: .85rem; line-height: 1.7; word-break: normal; overflow-wrap: break-word; }
.ep-table thead th { min-width: 9rem; background: #17231e; font-size: .81rem; vertical-align: top; letter-spacing: 0; text-transform: none; }
.ep-table tbody th { background: #121b17; color: var(--color-text); font-weight: 600; letter-spacing: 0; text-transform: none; }
.ep-table tbody tr:nth-child(even) td { background: #111713; }
.ep-table :is(th,td) p { margin: 0; font-size: inherit; line-height: inherit; color: inherit; }
.ep-table :is(th,td) p + p { margin-top: .45rem; }
.ep-table tbody tr:last-child :is(th,td) { border-bottom: 0; }
.ep-table-wide .ep-table thead th { min-width: 10rem; }
.ep-logo-link { display: flex; align-items: center; justify-content: flex-start; min-height: 3.2rem; margin-top: .75rem; }
.ep-company-logo { display: block; width: auto; height: auto; max-width: 125px; max-height: 48px; object-fit: contain; }
/* Crop the square source canvases to their visible marks using CSS only. */
.ep-logo-link--crop { position: relative; display: block; overflow: hidden; }
.ep-logo-link--crop .ep-company-logo { position: absolute; max-width: none; max-height: none; }
.ep-logo-link--basf { width: 128px; height: 52px; min-height: 52px; }
.ep-logo-link--basf .ep-company-logo { width: 168px; height: 168px; left: -20px; top: -58px; }
.ep-logo-link--ecopi { width: 94px; height: 64px; min-height: 64px; }
.ep-logo-link--ecopi .ep-company-logo { width: 211px; height: 211px; left: -58px; top: -74px; }
.ep-resource-placeholder { margin: 1.6rem 0 2rem; min-height: 138px; display: flex; flex-direction: column; justify-content: center; padding: 1.4rem; border: 1px dashed #596a61; border-radius: 10px; background: #0e1511; }
.ep-resource-placeholder p { margin: 0; font-size: .92rem; color: var(--color-muted); }
.ep-resource-placeholder .ep-resource-label { margin-bottom: .5rem; color: var(--color-text); font-weight: 600; }

/* A separate TOC avoids the shared flat .side-nav enhancer moving nested links. */
.ep-toc { position: sticky; top: calc(var(--nav-height) + 24px); max-height: calc(100svh - var(--nav-height) - 48px); overflow-y: auto; align-self: start; padding: 1.1rem; border: 1px solid #394340; border-radius: 14px; background: #101513; scrollbar-width: thin; scrollbar-color: #52685b #101513; }
.ep-toc-label { margin: 0 0 .75rem; font-size: .7rem; font-weight: 650; letter-spacing: .11em; text-transform: uppercase; color: var(--color-text); }
.ep-toc ol { padding: 0; margin: 0; list-style: none; }
.ep-toc li { margin: 0; }
.ep-toc a { display: block; padding: .55rem .55rem .55rem .8rem; border-left: 2px solid #394340; color: var(--color-muted); font-size: .81rem; line-height: 1.5; text-decoration: none; }
.ep-toc a:hover { border-left-color: var(--brand-green); color: var(--brand-green); }
.ep-toc .ep-toc-primary { display: flex; align-items: baseline; justify-content: space-between; gap: .5rem; font-size: .86rem; font-weight: 500; }
.ep-toc-group + .ep-toc-group { margin-top: .25rem; }
.ep-toc-group.is-current > .ep-toc-primary { border-left-color: var(--brand-green); background: #192b23; color: var(--brand-green); border-radius: 0 6px 6px 0; font-weight: 650; }
.ep-toc-chevron { flex: 0 0 auto; color: var(--brand-green); line-height: 1; }
.ep-toc-group:not(.is-current) > .ep-toc-primary[aria-expanded='false'] .ep-toc-chevron { transform: rotate(-90deg); }
.ep-toc .ep-toc-children { margin: .3rem 0 .7rem .8rem; }
.ep-toc-children a { font-size: .78rem; padding-block: .4rem; }
.ep-toc a[aria-current='location'] { color: var(--brand-green); border-left-color: var(--brand-green); font-weight: 600; }
.ep-toc [hidden] { display: none !important; }
.ep-toc-toggle { display: flex; align-items: center; justify-content: space-between; gap: 1rem; width: 100%; padding: .2rem 0; border: 0; background: none; color: var(--color-text); text-align: left; font: 600 .9rem/1.6 var(--font-sans); }
.ep-toc-toggle span { color: var(--brand-green); font-size: 1.3rem; }
.ep-toc-toggle[aria-expanded='true'] span { transform: rotate(45deg); }
.ep-article :is(a, [tabindex]):focus-visible, .ep-toc :is(a,button):focus-visible { outline: 2px solid var(--brand-blue); outline-offset: 4px; }
@media (min-width: 992px) { .ep-toc-toggle { display: none; } }
@media (max-width: 991.98px) {
  .entrepreneurship-page .ep-content-grid { grid-template-columns: minmax(0, 1fr); gap: 2rem; }
  .ep-toc { grid-row: 1; position: static; max-height: none; padding: 1rem 1.15rem; }
  .ep-toc.is-enhanced .ep-toc-label { display: none; }
  .ep-toc.is-enhanced nav:not([hidden]) { margin-top: .75rem; }
  .ep-section + .ep-section { margin-top: 3rem; padding-top: 2.3rem; }
}
@media (max-width: 575.98px) {
  .ep-section-heading { gap: .7rem; }
  .ep-article .ep-section-heading h2 { font-size: 1.7rem; }
  .ep-article h3 { font-size: 1.23rem; margin-top: 2.2rem; }
  .ep-figure { margin: 1.5rem 0 2rem; }
  .ep-table :is(th,td) { padding: .8rem; }
}

/* Stakeholder intros: fold the paragraph, and follow the name to that Human Practices conversation. */
.ep-stakeholder-list { display: grid; gap: .7rem; margin: .15rem 0 1.6rem; }
.ep-stakeholder-card { border: 1px solid rgba(233, 241, 237, .28); border-radius: 8px; background: rgba(233, 241, 237, .08); }
.ep-stakeholder-card summary {
  display: flex; align-items: stretch; gap: 0; margin: 0; padding: 0;
  list-style: none; cursor: pointer; color: #e9f1ed;
}
.ep-stakeholder-card summary::-webkit-details-marker { display: none; }
.ep-stakeholder-card summary::marker { content: ''; }
.ep-stakeholder-card summary:focus-visible { outline: 2px solid var(--brand-blue); outline-offset: 3px; }
.ep-stakeholder-link, .ep-stakeholder-name {
  flex: 1 1 auto; display: flex; align-items: center; justify-content: space-between; gap: .75rem;
  min-width: 0; min-height: 3.25rem; padding: .95rem 0 .95rem 1.15rem;
  color: inherit; font-weight: 650; line-height: 1.45; text-decoration: none;
}
.ep-stakeholder-link:hover { color: var(--brand-green); }
.ep-stakeholder-go { flex: 0 0 auto; color: var(--brand-purple); font-size: 1rem; line-height: 1; }
.ep-stakeholder-link:hover .ep-stakeholder-go { color: var(--brand-green); }
.ep-stakeholder-chevron {
  flex: 0 0 auto; display: grid; place-items: center; width: 3rem; color: #e9f1ed;
}
.ep-stakeholder-chevron::before {
  content: ''; width: .55rem; height: .55rem; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translate(-1px, -1px); transition: transform .18s ease;
}
.ep-stakeholder-card[open] { background: rgba(233, 241, 237, .12); }
.ep-stakeholder-card[open] .ep-stakeholder-chevron::before { transform: rotate(225deg) translate(-1px, -1px); }
.ep-stakeholder-body { padding: 0 1.15rem 1.05rem 1.15rem; color: #e9f1ed; font-size: .98rem; line-height: 1.75; }
.ep-stakeholder-body p { margin: 0; }
.ep-clip {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
@media (prefers-reduced-motion: reduce) {
  .ep-stakeholder-chevron::before { transition: none; }
}
