/* Public introduction and activities. Portal layouts use their existing styles. */
[data-model-home] [hidden] { display: none !important; }
.mh-strip-title { padding-block: 18px 4px; font-size: 15px; font-weight: 700; color: var(--muted); }
[data-model-home] .stats-band .stats { padding-block-start: 12px; border-top: 0; }
[data-model-home] .hero-foot a { text-decoration: underline; text-underline-offset: 3px; }
.mh-principles { border-block: 1px solid var(--line); align-self: center; }
.mh-principles article { padding: 18px 0; }
.mh-principles article + article { border-block-start: 1px solid var(--line); }
.mh-principles h3 { color: var(--teal); font-size: 17px; margin: 0; }
.mh-principles p { font-size: 14px; line-height: 1.9; margin: 4px 0 0; }
.mh-reading { padding-block: 12px; border-block-start: 1px solid var(--line); }
.mh-reading summary { color: var(--teal); font-weight: 700; cursor: pointer; }
.mh-reading p { margin: 10px 0 0; line-height: 1.8; }
.mh-journey-reading { margin-block-start: 24px; }
.mh-stages { display: grid; grid-template-columns: repeat(7,minmax(0,1fr)); gap: 12px; margin-block-start: 30px; }
.mh-stage { position: relative; min-width: 0; text-align: start; padding: 12px 4px 8px; border: 0; border-block-start: 2px solid #c9bd9b; border-radius: 0; background: transparent; color: var(--brown); }
.mh-stage strong, .mh-stage-number { display: block; }
.mh-stage strong { font-size: 14px; line-height: 1.65; }
.mh-stage-number, .mh-stage small { color: var(--teal); font-size: 12px; }
.mh-stage:hover, .mh-stage:focus-visible { background: #eee8d7; }
.mh-stage-current { border-color: #a47c1c; }
.mh-stage-current small { display: inline-block; margin-block-start: 8px; background: #f4ead1; color: #624611; border: 1px solid #c8ad70; padding-inline: 6px; border-radius: 5px; }
.mh-stage-meta { color: var(--teal); margin-block-start: 15px; }
.mh-details p { white-space: pre-line; }
.mh-switch { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; border-radius: 10px; background: #f0ebe0; border: 1px solid var(--line); margin: 0 0 20px; }
.mh-switch label { position: relative; cursor: pointer; }
.mh-switch label > span { display: block; padding: 9px 14px; border-radius: 7px; font-weight: 700; font-size: 14px; }
.mh-screenreader, .mh-switch input { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.mh-switch input:checked + span { color: #fff; background: var(--brown); }
.mh-switch input:focus-visible + span { outline: 3px solid var(--aqua); outline-offset: 2px; }
.mh-program { padding: clamp(16px,3vw,40px); border: 1px solid #d4e8e4; border-radius: 14px; background: #eef6f3; }
.mh-program .section-head { align-items: center; margin-bottom: 12px; }
.mh-program-info { display: flex; gap: 16px; justify-content: space-between; align-items: center; flex-wrap: wrap; margin-block-end: 20px; }
.mh-program-info .training-provider { margin: 0; padding: 0; }
.mh-axes { flex: 1 1 100%; display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 16px; }
.mh-axes h3 { color: var(--teal); font-size: 15px; margin: 0; }
.mh-axes p { font-size: 14px; line-height: 1.8; margin: 4px 0 0; }
.mh-program-days, .mh-achievements { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 9px; align-items: start; }
.mh-day { background: white; border: 1px solid #d2e2de; border-radius: 8px; padding: 10px 13px; min-width: 0; }
.mh-day summary { cursor: pointer; color: var(--teal); }
.mh-day summary strong { color: var(--brown); padding-inline-end: 5px; }
.mh-day summary span { color: var(--muted); font-size: 12px; white-space: nowrap; }
.mh-day ul { list-style: none; margin: 8px 0 0; padding: 0; }
.mh-day li { padding: 10px 0; border-block-start: 1px solid var(--line); }
.mh-day li h3 { font-size: 14px; line-height: 1.6; }
.mh-day li p, .mh-day li small { font-size: 12px; margin: 4px 0 0; }
.mh-workflow { background: #f2eee3; }
.mh-workflow ol { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 18px 32px; margin: 0; padding: 0; list-style: none; counter-reset: step; }
.mh-workflow li { counter-increment: step; border-block-start: 1px solid #c9bd9b; padding-block-start: 13px; }
.mh-workflow li::before { content: counter(step); display: inline-flex; align-items: center; justify-content: center; color: var(--teal); margin-inline-end: 8px; font-weight: 700; }
html[lang="ar"] .mh-workflow li::before { content: counter(step, arabic-indic); }
.mh-workflow li p, .mh-achievements p { font-size: 14px; line-height: 1.8; margin-block: 4px; }
.mh-achievements { grid-template-columns: repeat(3,minmax(0,1fr)); }
.mh-achievements article { padding: 16px 20px; border: 1px solid var(--line); border-radius: 8px; background: white; min-width: 0; overflow-wrap: anywhere; }
.mh-achievements h3 { font-size: 17px; }
.mh-achievements p { white-space: pre-line; }
@media (max-width: 900px) {
  .mh-stages { grid-template-columns: repeat(4,minmax(0,1fr)); }
  .mh-program-days { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 640px) {
  .mh-principles article { padding-block: 12px; }
  .mh-stages, .mh-workflow ol { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
  .mh-workflow { padding-block: 42px; }
  .mh-achievements { grid-template-columns: 1fr; }
  .mh-program .section-head { align-items: start; flex-direction: column; gap: 10px; }
  .mh-program-info { gap: 10px; }
  .mh-axes { grid-template-columns: 1fr; gap: 12px; }
  .mh-program-days { display: block; }
  .mh-day + .mh-day { margin-block-start: 7px; }
}
