/* =============================================================================
   Entrepreneurship: what engage.css does not already do.

   The page speaks the IHP soft language from assets/css/engage.css: the four
   business-model tools and the four development years are segmented-control
   chapters, the canvas blocks, stakeholder groups, key stakeholders,
   marketing tracks and risks are side-list switches, and the rest sits in
   pale rounded blocks. What is left here is only what this page has and the
   others do not: the price tag, the step grid, the market-sizing pair, the
   comparison table, the cost tables, the risk levels.
   ========================================================================== */

/* the expo photograph: keep the listening faces in frame at 21:9 */
.ent .pagehead__hero img { object-position: center 55%; }

.ent .fig--md { max-width: 45rem; }

/* a fold's note runs long on this page: let it wrap instead of overflowing */
.ent .fold > summary { flex-wrap: wrap; row-gap: .2rem; }
.ent .fold__sub { flex: 0 1 26rem; white-space: normal; text-align: right; line-height: 1.35; }
@media (max-width: 40rem) { .ent .fold__sub { flex-basis: 100%; margin-left: 0; text-align: left; } }

/* ------------------------------------------- text beside its figure ----- */
.duo { display: grid; gap: var(--sp-5) var(--sp-7); align-items: center; margin: var(--sp-5) 0; }
@media (min-width: 62rem) { .duo { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); } }
.ent .duo .fig { margin: 0; }
.ent .duo + .blks--3 { margin-bottom: var(--sp-5); }
.ent .blks--3 .blk p { margin: 0; font-size: .9375rem; line-height: 1.6; color: var(--ink-2); }
.ent .duo__text p { max-width: var(--measure); }
/* the three product components: each card opens on its own figure, all three
   framed to one height so the cards line up */
.ent .comps .comp__fig { margin: 0 0 1rem; }
.ent .comps .comp__fig img { display: block; width: 100%; height: 17rem; object-fit: contain; background: #fff; border-radius: 14px; }
.ent .comps .comp__fig figcaption { margin-top: .6rem; }
/* the Philippine clearance steps keep the reading measure */
.ent .steps--reg { margin: var(--sp-4) 0 var(--sp-5); }
.ent .steps--reg > li { max-width: var(--measure); }
.ent .refs a { overflow-wrap: anywhere; }
.ent .duo__text p:last-child { margin-bottom: 0; }
@media (min-width: 62rem) { .duo--reg { align-items: start; } }

/* the social enterprise block: two questions on the left, the model on the right */
.ent .ev--se { margin-top: var(--sp-5); align-items: center; }
.ent .ev--se .ev__title + p { margin-bottom: 1.5rem; }
.ent .ev--se .ev__title { font-size: clamp(1.1875rem, 1.05rem + .5vw, 1.4375rem); margin-bottom: .6rem; }
.ent .ev--se .fig img { border-radius: 14px; background: #fff; }
.ent .ev--se figcaption { margin-top: .5rem; font-size: .8125rem; line-height: 1.45; color: var(--ink-3); }

/* --------------------------------------------------------- price tag ----- */
.price { display: grid; gap: var(--sp-4) var(--sp-7); align-items: center; }
@media (min-width: 52rem) { .price { grid-template-columns: auto minmax(0, 1fr); } }
.ent .price .pricebox__num { margin: 0; font-size: clamp(2.25rem, 1.7rem + 1.8vw, 3.25rem); color: var(--leaf); }
.ent .price .pricebox__what { margin: .45rem 0 0; font-size: .875rem; font-weight: 600; color: var(--ink-3); }
.ent .price > p { margin: 0; }

.ent .note { font-size: var(--text-sm); color: var(--ink-3); }

/* numbered steps, drawn as small filled circles */
.steps { list-style: none; padding: 0; counter-reset: st; }
.steps > li { counter-increment: st; position: relative; padding-left: 2.4rem; margin: 0 0 var(--sp-3); }
.steps > li::before {
  content: counter(st);
  position: absolute; left: 0; top: .05rem;
  width: 1.6rem; height: 1.6rem;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--leaf); color: #fff;
  font-size: .8rem; font-weight: 650;
}
/* the six usage steps as a grid of pale tiles */
.steps--grid { display: grid; gap: .75rem; margin: var(--sp-5) 0 var(--sp-4); }
@media (min-width: 40rem) { .steps--grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 62rem) { .steps--grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.ent .steps--grid > li {
  margin: 0; padding: 1.15rem 1.25rem 1.2rem 3.4rem;
  border-radius: 20px; background: var(--well);
  font-size: .9375rem; line-height: 1.55; color: var(--ink-2);
}
.steps--grid > li::before { left: 1.15rem; top: 1.1rem; }
.ent .blk .steps > li { font-size: .96875rem; line-height: 1.6; color: var(--ink-2); }

/* Fig. 8 and Fig. 9 are drawn as a table and as cards, each with the students' caption */
.ent .fig--table, .ent .fig--cards { margin: var(--sp-5) 0; }
.ent .fig--table .tablewrap { margin: 0; }
.ent .fig--table figcaption, .ent .fig--cards figcaption { margin-top: .6rem; }
.ent .fig--cards .cards { margin: 0; }

/* the six PESTEL paragraphs */
.ent .pestel { margin-top: var(--sp-5); }
.ent .pestel .card p { margin: 0; font-size: .9375rem; line-height: 1.6; color: var(--ink-2); }

/* a chartbox inside a chapter sits on white, so it takes the grey well */
.ent .rail__panel > .chartbox { background: var(--well); }
.ent .chap__note { text-align: center; }

/* ------------------------------------------------------------- SWOT ------ */
.ent .swot .card { padding: clamp(1.4rem, 1rem + 1.4vw, 2.25rem); }
.ent .swot .card__name { margin-bottom: .7rem; color: var(--pl); }

/* ------------------------------------------------- side-list switches ---- */
/* inside a chapter the list stays clear of the pinned segmented control */
@media (min-width: 52rem) { .rail--seg .app__list { top: calc(var(--nav-h) + 5.25rem); } }
.ent .rail--app .app__panel h4 span { font-weight: 500; color: var(--ink-3); }
.ent .app__group { margin: .6rem .7rem .25rem; font-size: .75rem; font-weight: 650; color: var(--ink-3); }
.ent .app__group:first-child { margin-top: .35rem; }
@media (max-width: 51.99rem) { .ent .app__group { align-self: center; margin: 0 .4rem; white-space: nowrap; } }

/* stakeholder groups: one name and one sentence or two per stakeholder */
.stake { margin: 0; }
.ent .stake dt { margin: 1.1rem 0 .2rem; font-size: .96875rem; font-weight: 650; color: var(--ink); }
.ent .stake dt:first-child { margin-top: 0; }
.ent .stake dd { margin: 0; max-width: 68ch; font-size: .9375rem; line-height: 1.62; color: var(--ink-2); }

/* key stakeholders: the account beside its photograph */
.ks { display: grid; gap: 1.25rem 1.75rem; align-items: start; }
@media (min-width: 70rem) { .ks { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); } .ks--solo { grid-template-columns: minmax(0, 1fr); } }
.ent .ks .fig { margin: 0; }
.ent .ks .fig img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 18px; cursor: zoom-in; }
.ent .ks__text p > b:first-child { display: block; margin-bottom: .2rem; font-size: .875rem; font-weight: 650; color: var(--ink); }

/* risks: the two levels side by side, then the description and the mitigation */
.risk__lv { display: grid; gap: .5rem; margin: 0 0 1.25rem; }
@media (min-width: 40rem) { .risk__lv { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); } }
.ent .risk__lv p { margin: 0; padding: .8rem 1rem; border-radius: 16px; background: var(--well); font-size: .875rem; line-height: 1.5; color: var(--ink-2); }
.risk__k { display: block; margin-bottom: .35rem; font-size: .75rem; font-weight: 650; color: var(--ink-3); }
.ent .rail--risk .app__panel h5 { margin-top: var(--sp-4); }
.lvl { display: inline-block; padding: .1rem .55rem; border-radius: 999px; font-size: .75rem; font-weight: 650; white-space: nowrap; }
.lvl--low  { background: var(--leaf-50);  color: var(--leaf-700); }
.lvl--med  { background: var(--amber-100); color: var(--amber-700); }
.lvl--high { background: var(--rust-100); color: var(--rust-700); }

/* ------------------------------------------------------ market sizing ---- */
.ent .sizing { display: grid; gap: var(--sp-5) var(--sp-6); align-items: center; }
@media (min-width: 52rem) { .ent .sizing { grid-template-columns: minmax(0, 18rem) minmax(0, 1fr); } }
.ent .sizing .fig { margin: 0; }
.ent .sizing .fig img { border-radius: 14px; }
.ent .sizing figcaption { margin-top: .5rem; font-size: .8125rem; color: var(--ink-3); }
.ent .sizing .voices { grid-template-columns: minmax(0, 1fr); margin: 0; }
.ent .sizing dd { margin: 0; font-size: .9375rem; line-height: 1.6; color: var(--ink-2); }

/* the close of the competitor analysis */
.ent h4.end__label { margin: 0 0 .75rem; font-size: .875rem; font-weight: 600; letter-spacing: 0; text-transform: none; color: var(--pl); }

/* ---------------------------------------------------- comparison table --- */
.ent table.data caption {
  caption-side: top; text-align: left;
  padding: .9rem 1.1rem .6rem;
  font-size: var(--text-sm); font-weight: 600; color: var(--ink-3);
}
table.data.compare thead th { white-space: normal; text-transform: none; letter-spacing: 0; font-size: var(--text-xs); line-height: 1.35; vertical-align: bottom; }
.compare { min-width: 36rem; table-layout: fixed; }
.compare th:first-child { width: 11rem; }
.compare thead th span { display: block; font-weight: 400; color: var(--ink-3); }
.compare tbody th { font-weight: 600; text-align: left; }
.compare td { text-align: center; font-size: var(--text-sm); font-weight: 600; }
.compare td.y { color: var(--leaf-700); }
.compare td.n { color: var(--rust-700); }
.compare td.y::before, .compare td.n::before {
  content: ""; display: inline-block; width: .55rem; height: .55rem;
  margin-right: .35rem; border-radius: 50%; vertical-align: .05rem;
  background: currentColor;
}
.compare .compare__us { background: var(--lwell); }

/* ---------------------------------------------------- the four years ----- */
.ent .year { max-width: 60rem; margin: 0 auto; }
.ent .year p { max-width: 72ch; }
.ent .year .bundles { margin-top: 1.25rem; }
.ent .voice h4.voice__who { margin: 0 0 .5rem; font-size: .875rem; font-weight: 650; letter-spacing: 0; color: var(--pl); }

/* ------------------------------------------------------- financials ------ */
.fintables { display: grid; gap: var(--sp-4); margin: var(--sp-5) 0; }
@media (min-width: 760px) { .fintables { grid-template-columns: 1fr 1fr; } .fintables .tablewrap { margin: 0; } }
.ent table.data .num { text-align: right; font-variant-numeric: tabular-nums; }
.ent table.data tfoot th, .ent table.data tfoot td { border-top: 1px solid rgb(0 0 0 / .08); }
.ent table.data tfoot th { text-align: left; }
.ent .formula { margin: var(--sp-5) 0; }
.mathblock { overflow-x: auto; margin: var(--sp-3) 0; }

/* regulations: the argument takes the wider column */
@media (min-width: 62rem) { .duo--reg { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); } }

/* the conclusion: the first two cards side by side, the dark one beneath */
@media (min-width: 52rem) { .ent .concl .concl__card:first-child, .ent .concl .concl__card--wide { grid-column: auto; } }

/* the nine blocks of the canvas, all in view */
.ent .canvas .card { padding: 1.4rem 1.5rem 1.5rem; }
.ent .canvas .card__head { gap: .7rem; }
.ent .canvas .app__ico { width: 2rem; height: 2rem; padding: .42rem; border-radius: 10px; }
.ent .canvas .card__name { font-size: 1.0625rem; }
.ent .canvas p.cv__note { margin: .6rem 0 .7rem; font-size: .8125rem; line-height: 1.45; }
.ent .canvas p:not(.cv__note) { font-size: .9375rem; line-height: 1.6; }
@media (min-width: 52rem) { .engage.ent .concl__card:first-child p { font-size: .96875rem; color: var(--ink-2); } }
/* on a phone the side list runs sideways; long names wrap inside a button */
@media (max-width: 51.99rem) { .ent .rail--app .app__btn { max-width: 14.5rem; } }
.ent .sec > .blks, .ent .sec > .cards { margin-bottom: var(--sp-5); }

/* ------------------------------------- product development roadmap ----- */
/* drawn from "ReLEAF Product Development Plan.html": 12 half-year columns */
.ent .roadmap-fig { margin: var(--sp-5) 0; }
.ent .rm__legend { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; margin: 0 0 .6rem; font-size: .8125rem; color: var(--ink-3); }
.ent .rm__legend span { display: inline-flex; align-items: center; gap: .45rem; }
.rm__sw { display: inline-block; width: 1.4rem; height: .6rem; border-radius: 3px; }
.ent .rm__wrap { margin: 0; max-height: min(78vh, 48rem); overflow: auto; }
.ent table.roadmap { min-width: 52rem; table-layout: fixed; font-size: .8125rem; }
.ent table.roadmap th:first-child { width: 17rem; }
.ent table.roadmap thead th { position: sticky; z-index: 2; background: #fff; text-align: center; font-size: .75rem; padding: .45rem .2rem; }
.ent table.roadmap thead tr:first-child th { top: 0; }
.ent table.roadmap thead tr + tr th { top: 2rem; font-weight: 500; color: var(--ink-3); }
.ent table.roadmap thead th.rm__corner { left: 0; z-index: 3; text-align: left; vertical-align: bottom; padding-left: .85rem; }
.ent table.roadmap th, .ent table.roadmap td { padding: .45rem .3rem; vertical-align: middle; }
.ent table.roadmap tbody th[scope="row"] { position: sticky; left: 0; z-index: 1; background: #fff; padding-left: .85rem; font-weight: 400; line-height: 1.35; color: var(--ink); }
.ent table.roadmap td.rm__y, .ent table.roadmap th.rm__y { border-left: 1px solid var(--gray-200); }
.ent table.roadmap tbody tr:hover { background: none; }
.ent table.roadmap tbody tr + tr { border-top: 1px solid var(--gray-100); }
.ent .rm__phase th { background: var(--leaf-900); color: #fff; font-weight: 600; text-align: left; padding: .6rem .85rem; }
.ent .rm__phase th[scope="rowgroup"] { position: sticky; left: 0; }
.rm__num { display: inline-grid; place-items: center; min-width: 1.7rem; height: 1.45rem; margin-right: .6rem; padding: 0 .3rem; border-radius: 6px; background: var(--leaf-200); color: var(--leaf-900); font-size: .75rem; font-weight: 650; }
.ent .rm__win { margin-left: .5rem; font-weight: 400; font-size: .75rem; opacity: .8; }
.rm__dot { display: inline-block; width: .55rem; height: .55rem; margin-right: .5rem; border-radius: 50%; vertical-align: .05rem; }
.rm__dot.rm--done, .rm__sw.rm--done { background: var(--leaf-700); }
.rm__dot.rm--planned, .rm__sw.rm--planned { background: var(--slate-100); box-shadow: inset 0 0 0 1.5px var(--gray-400); }
.ent td.rm__bar > span { display: flex; align-items: center; justify-content: center; gap: .25rem; height: 1.35rem; border-radius: 4px; font-size: .6875rem; font-weight: 600; white-space: nowrap; }
.ent td.rm__bar.rm--done > span { background: var(--leaf-700); color: #fff; }
.ent td.rm__bar.rm--planned > span { background: var(--slate-100); color: var(--slate-700); }
.ent .rm__ms th[scope="row"] { font-weight: 600; }
.ent table.roadmap tr.rm__ms th[scope="row"] { background: var(--amber-100); }
.ent table.roadmap tr.rm__ms--strategic th[scope="row"] { background: var(--leaf-50); }
.ent .rm__ms { background: var(--amber-100); }
.ent .rm__ms--strategic { background: var(--leaf-50); }
.rm__eb { display: block; margin-bottom: .1rem; font-size: .6875rem; font-weight: 500; color: var(--ink-3); }
.ent td.rm__mk { text-align: center; }
.rm__dia { display: inline-block; width: .6rem; height: .6rem; margin: 0 .55rem; background: var(--amber-700); transform: rotate(45deg); }
.rm__ms--strategic .rm__dia, .rm__dia--strat { background: var(--leaf-700); }
.rm__legend .rm__dia { margin: 0 .2rem; }
