.entre-page { color: #141937; }
.entre-page .content-body { line-height: 1.75; }
.entre-page .content-body p { margin: 0 0 1.2rem; }
.entre-page .toc-link.toc-h2 { font-size: 1.2rem; line-height: inherit; font-weight: 700; }

.ent-intro { padding: 0 0 2.4rem; border-bottom: 1px solid #d9dce6; margin-bottom: 2.6rem; }
.ent-eyebrow { display: block; color: #6e78ab; font-size: .76rem; letter-spacing: .18em; font-weight: 700; margin-bottom: .8rem; }
.ent-page-label { font-size: clamp(1.5rem, 2.7vw, 2.3rem); font-weight: 600; line-height: 1.3; letter-spacing: -.025em; }
.entre-page .ent-section { margin-bottom: 4.5rem; }
.entre-page .ent-subheading { font-size: clamp(1.15rem, 1.8vw, 1.45rem); font-weight: 600; line-height: 1.5; margin: 2.3rem 0 1rem; color: #141937; text-decoration: underline; text-decoration-color: #848dc6; text-decoration-thickness: 2px; text-underline-offset: .28em; }
.entre-page .ent-label-heading { font-size: 1.08rem; font-weight: 600; line-height: 1.5; margin: 1.8rem 0 .8rem; color: #141937; text-decoration: none; }
.entre-page h5.ent-label-heading { font-size: 1rem; margin: 1.5rem 0 .75rem; }
.ent-bullets { padding-left: 1.4rem; margin: 0 0 1.4rem; }
.ent-bullets li { padding-left: .25rem; margin-bottom: .65rem; }
.ent-table-wrap { margin: 1.4rem 0 1.8rem; overscroll-behavior-x: contain; }
.ent-cols-2 .ent-table { min-width: 420px; }
.ent-cols-4 .ent-table { min-width: 760px; }
.ent-cols-5 .ent-table, .ent-cols-6 .ent-table { min-width: 1000px; }
.ent-table th:first-child, .ent-table th:last-child { width: auto; }
.ent-cols-2 .ent-table th:first-child { width: 26%; }
.ent-cols-3 .ent-table th:first-child { width: 25%; }
.ent-draft-note { background: #f0f2f7; border: 1px dashed #bfc5dd; border-radius: 12px; padding: 1rem 1.25rem; margin: 1.5rem 0; }
.entre-page .ent-draft-note p { margin: .3rem 0 0; font-size: .9rem; }
.entre-page .ent-reference-note { font-size: .9rem; color: #59679e; }
.ent-pending-cite { text-decoration: underline dotted !important; text-underline-offset: .25em; }
.ent-roadmap { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .8rem; padding: 0; list-style: none; counter-reset: roadmap; margin: 1.4rem 0; }
.ent-roadmap li { counter-increment: roadmap; border: 1px solid #d8dce7; background: #eef0f8; border-radius: 12px; padding: 1.1rem; display: flex; align-items: flex-start; gap: .7rem; line-height: 1.5; font-size: .93rem; }
.ent-roadmap li::before { content: counter(roadmap, decimal-leading-zero); color: #6875b0; font-size: .8rem; padding-top: .15rem; }
.ent-roadmap li:last-child { background: #eef4cb; }
.entre-page .toc-link { scroll-margin-block: 1rem; }
.ent-heading { display: flex; align-items: flex-start; gap: .85rem; margin-bottom: 1.6rem; }
.ent-section-no { display: grid; place-items: center; flex: 0 0 2.5rem; height: 2.5rem; border: 1px solid #c6cbe0; border-radius: 50%; color: #6875b0; font-weight: 600; font-size: .8rem; margin-top: .12rem; }
.entre-page .ent-heading h2 { margin: 0; font-size: clamp(1.5rem, 2.2vw, 2rem); line-height: 1.35; font-weight: 600; letter-spacing: -.025em; }
.ent-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin: 0 0 2rem; }
.ent-stat { position: relative; overflow: hidden; padding: 1.6rem 1.4rem; border: 1px solid #d9dce6; border-radius: 16px; min-height: 220px; }
.ent-stat-lime { background: #eef4cb; border-color: #dee6b4; }
.ent-stat-blue { background: #e9eff4; border-color: #d3dde8; }
.ent-stat-purple { background: #eeedf5; border-color: #d9d9e9; }
.ent-stat-value { display: flex; align-items: baseline; flex-wrap: wrap; gap: .4rem; font-size: clamp(2.3rem, 4vw, 3.4rem); font-weight: 600; line-height: 1.1; letter-spacing: -.06em; margin-bottom: .75rem; position: relative; z-index: 1; }
.ent-stat-value span { font-size: .85rem; font-weight: 500; letter-spacing: 0; }
.ent-stat p { position: relative; z-index: 1; font-size: .88rem; line-height: 1.6; max-width: 14rem; }
.ent-donut { position: absolute; width: 112px; height: 112px; bottom: -28px; right: -25px; opacity: .22; }
.entre-page .cite { color: #59679e; font-size: .84em; text-decoration: none; font-weight: 600; white-space: nowrap; }
.entre-page .cite:hover { text-decoration: underline; }
.ent-detail { border-top: 1px solid #d9dce6; padding: 1rem 0; }
.ent-detail summary { cursor: pointer; color: #141937; font-weight: 600; line-height: 1.5; }
.ent-detail[open] summary { margin-bottom: .9rem; }
.ent-detail p { font-size: .96rem; }
.ent-takeaway { background: #eef0f8; border-left: 4px solid #848dc6; padding: 1.3rem 1.45rem; margin: 1.5rem 0 0; border-radius: 0 12px 12px 0; }
.entre-page .ent-takeaway p { margin: 0; font-size: .96rem; }
.ent-table-wrap { border: 1px solid #d8dce7; border-radius: 14px; overflow-x: auto; }
.ent-table { width: 100%; border-collapse: collapse; min-width: 660px; font-size: .91rem; line-height: 1.65; }
.ent-table th, .ent-table td { padding: 1.1rem 1.15rem; vertical-align: top; border-bottom: 1px solid #dfe3ec; }
.ent-table thead { background: #141937; color: #fdfdf4; }
.ent-table thead th { font-weight: 500; font-size: .83rem; }
.ent-table tbody th { font-weight: 600; text-align: left; }
.ent-table tbody tr:nth-child(even) { background: #f0f2f7; }
.ent-table tbody tr:last-child > * { border-bottom: 0; }
.ent-targets { border: 1px solid #d8dce7; border-radius: 16px; overflow: hidden; background: #f6f6fa; }
.ent-target-tabs { display: flex; gap: .6rem; padding: .85rem; border-bottom: 1px solid #d8dce7; }
.ent-target-tabs button { min-width: 110px; border: 1px solid #c9cee0; border-radius: 30px; background: transparent; color: #141937; padding: .55rem 1.2rem; font: inherit; font-weight: 600; cursor: pointer; transition: background .15s; }
.ent-target-tabs button[aria-selected="true"] { background: #141937; color: #dfee87; border-color: #141937; }
.ent-target-panel { padding: 1.5rem 1.65rem; }
.entre-page .ent-target-panel p { margin: 0; }
.ent-target-panel[hidden] { display: none; }
.ent-target-rationale { background: #141937; color: #fdfdf4; border-left-color: #dfee87; }
.ent-target-rationale .cite { color: #dfee87; }
.ent-needs-paragraph { border-left: 3px solid #dfee87; padding-left: 1.4rem; }
.ent-reference-list { padding-left: 2rem; margin-top: 1.2rem; font-size: .87rem; line-height: 1.65; }
.ent-reference-list li { margin-bottom: 1.1rem; padding-left: .4rem; overflow-wrap: anywhere; scroll-margin-top: 130px; }
.ent-reference-list a { color: #6875b0; }
.ent-reference-pending { color: #795b81; font-weight: 600; }
.ent-reference-list li:target { background: #eef4cb; border-radius: 5px; }
.entre-page :focus-visible { outline: 2px solid #6875b0; outline-offset: 4px; }
@media (max-width: 1000px) {
  .ent-stats { gap: .65rem; }
  .ent-stat { padding: 1.2rem 1rem; }
}
@media (max-width: 768px) {
  .ent-roadmap { grid-template-columns: 1fr; }
  .ent-stats { grid-template-columns: 1fr; gap: .8rem; }
  .ent-stat { min-height: 0; padding: 1.3rem 1.4rem; }
  .ent-stat p { max-width: none; margin-bottom: 0 !important; }
  .ent-stat-value { font-size: 2.8rem; }
  .entre-page .ent-section { margin-bottom: 3rem; }
  .ent-heading { gap: .7rem; }
  .ent-section-no { flex-basis: 2rem; height: 2rem; }
  .ent-target-panel { padding: 1.25rem; }
  .ent-takeaway { padding: 1.15rem; }
}
@media (prefers-reduced-motion: reduce) {
  .ent-target-tabs button { transition: none; }
}

/* Standard chapter/subsection navigation and reference badge. */
.entre-page .content-body :is(h2,h3,h4,h5){scroll-margin-top:130px}
.entre-page .wiki-reference-heading{align-items:center}
body .entre-page .wiki-reference-heading>.reference-icon{display:grid;place-items:center;box-sizing:border-box;flex:0 0 40px;width:40px;height:40px;margin:0;padding:0;border:1px solid #b6c7d8;border-radius:50%;background:rgb(182 199 216 / 27%)}
.entre-page .reference-icon>img{display:block;width:20px!important;height:20px!important;margin:0!important;padding:0;object-fit:contain}
@media(max-width:768px){.entre-page .toc-link.toc-h2{font-size:.9rem}}

/* Uploaded Entrepreneurship diagrams. Preserve readable labels on small screens. */
.entre-page .ent-diagram { width: 100%; max-width: 800px; min-width: 0; margin: 1.5rem auto 2rem; }
.entre-page .ent-diagram-scroll { max-width: 100%; overflow-x: auto; overscroll-behavior-x: contain; border-radius: 12px; }
.entre-page .ent-diagram-scroll:focus-visible { outline: 2px solid #59679e; outline-offset: 4px; }
.entre-page .ent-diagram a { display: block; width: 100%; min-width: 560px; }
.entre-page .ent-diagram img { display: block; width: 100%; max-width: none; height: auto; margin: 0; }
