/* Maroc Horizons — hand-built article blocks (stats, seasons, timeline, scorecard, lists, route). */

/* ---------- Opening panel ---------- */
.mhr-prose .mht-lead { position: relative; margin: 0 0 2rem; padding: 1.6rem 1.7rem; border-radius: 16px; color: #fff; background: radial-gradient(ellipse at 100% 0%, rgba(242, 196, 107, .28), transparent 55%), radial-gradient(ellipse at 0% 100%, rgba(58, 92, 230, .5), transparent 60%), var(--mhr-majorelle-deep); overflow: hidden; }
.mhr-prose .mht-lead > * { position: relative; z-index: 1; }
.mhr-prose .mht-lead::after { content: ""; position: absolute; top: 0; right: 0; bottom: 0; width: 45%; background: url("../img/zellige.svg") 100% 50% / 90px 90px; opacity: .09; -webkit-mask-image: linear-gradient(to left, #000, transparent); mask-image: linear-gradient(to left, #000, transparent); }
.mhr-prose .mht-lead__k { margin: 0; font-family: var(--mhr-sans); font-size: .8rem; font-weight: 700; color: #f2c46b; }
.mhr-prose .mht-lead__t { margin: .45rem 0 0; font-family: var(--mhr-serif); font-size: clamp(1.2rem, 2.2vw, 1.45rem); line-height: 1.4; color: #fff; }
.mhr-prose .mht-lead .mht-chips { margin-top: 1.1rem; }
.mhr-prose .mht-lead .mht-chips li { background: rgba(255, 255, 255, .12); color: #fff; border-color: rgba(255, 255, 255, .22); }

/* ---------- Chips ---------- */
.mhr-prose .mht-chips { display: flex; flex-wrap: wrap; gap: .45rem; margin: .9rem 0 0; padding: 0 !important; list-style: none; }
.mhr-prose .mht-chips li { margin: 0; padding: .3rem .7rem; border: 1px solid rgba(30, 50, 140, .16); border-radius: 999px; background: #f6f4ee; font-family: var(--mhr-sans); font-size: .8rem; font-weight: 600; line-height: 1.3; color: var(--mhr-majorelle-deep); }
.mhr-prose .mht-chips li::before { display: none !important; }
.mhr-prose .mht-chips li.is-good { background: #e6f4ec; border-color: #b9dfc9; color: #1f6b48; }

/* ---------- Big numbers ---------- */
.mhr-prose .mht-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(8.5rem, 1fr)); gap: 1px; margin: 1.8rem 0 2rem; border-radius: 14px; overflow: hidden; background: rgba(30, 50, 140, .14); border: 1px solid rgba(30, 50, 140, .14); }
.mhr-prose .mht-stat { display: flex; flex-direction: column; gap: .3rem; padding: 1.1rem 1.1rem 1.15rem; background: #fff; }
.mhr-prose .mht-stat__n { font-family: var(--mhr-serif); font-size: clamp(1.45rem, 2.6vw, 1.9rem); font-weight: 600; line-height: 1.05; color: var(--mhr-majorelle); }
.mhr-prose .mht-stat__l { font-family: var(--mhr-sans); font-size: .8rem; line-height: 1.35; color: #5a6072; }

/* ---------- Travel diary ---------- */
.mhr-prose .mht-diary { margin: 2rem 0; padding: 1.4rem 1.6rem 1.4rem 1.8rem; border-left: 3px solid var(--mhr-saffron); border-radius: 0 14px 14px 0; background: #fbf7ee; font-size: 1.12em; }
.mhr-prose .mht-diary::before { display: none; }
.mhr-prose .mht-diary__k { margin: 0 0 .5rem; font-family: var(--mhr-sans); font-size: .76rem; font-weight: 700; font-style: normal; color: #a46a0c; }
.mhr-prose .mht-diary p { margin: 0; }
.mhr-prose .mht-diary footer { margin-top: .8rem; font-family: var(--mhr-sans); font-size: .82rem; color: #5a6072; }

/* ---------- Cards: grid, top pick, price ---------- */
@media (min-width: 720px) {
	.mhr-prose .mht-items--grid { grid-template-columns: 1fr 1fr; }
}
.mhr-prose .mht-item__flag { display: inline-block; margin: 0 0 .6rem !important; padding: .2rem .6rem; border-radius: 999px; background: var(--mhr-saffron); color: var(--mhr-majorelle-deep); font-family: var(--mhr-sans); font-size: .72rem; font-weight: 700; }
.mhr-prose .mht-item--pick { border-color: var(--mhr-saffron); box-shadow: 0 0 0 3px rgba(242, 196, 107, .2); }
.mhr-prose .mht-item__price { margin-top: .9em !important; font-family: var(--mhr-serif); font-size: 1.25rem; font-weight: 600; color: var(--mhr-majorelle); }
.mhr-prose .mht-item__note { margin-top: .2em !important; font-family: var(--mhr-sans); font-size: .85rem; color: #5a6072; }

/* ---------- Seasons ---------- */
.mhr-prose .mht-seasons { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .7rem; margin: 1.6rem 0 2rem; }
.mhr-prose .mht-season { padding: 1rem 1rem 1.05rem; border-radius: 14px; border: 1px solid rgba(30, 50, 140, .14); background: #fff; border-top: 4px solid #8a93ad; }
.mhr-prose .mht-season p { margin: 0; }
.mhr-prose .mht-season--good { border-top-color: #2f9a68; }
.mhr-prose .mht-season--bad { border-top-color: #c8553d; }
.mhr-prose .mht-season__n { font-family: var(--mhr-serif); font-size: 1.2rem; font-weight: 600; }
.mhr-prose .mht-season__m, .mhr-prose .mht-season__t { font-family: var(--mhr-sans); font-size: .82rem; color: #5a6072; }
.mhr-prose .mht-season__t { margin-top: .1rem !important; }
.mhr-prose .mht-season__v { margin-top: .6rem !important; font-family: var(--mhr-sans); font-size: .82rem; font-weight: 700; color: var(--mhr-majorelle-deep); }
.mhr-prose .mht-season--good .mht-season__v { color: #1f6b48; }
.mhr-prose .mht-season--bad .mht-season__v { color: #9c3a26; }
@media (max-width: 719px) {
	.mhr-prose .mht-seasons { grid-template-columns: 1fr 1fr; }
}

/* ---------- Day-by-day timeline ---------- */
.mhr-prose .mht-timeline { display: grid; gap: 1.2rem; margin: 1.6rem 0 2.2rem; }
.mhr-prose .mht-day { border: 1px solid rgba(30, 50, 140, .14); border-radius: 16px; background: #fff; overflow: hidden; }
.mhr-prose .mht-day__head { display: grid; grid-template-columns: auto 1fr; column-gap: 1rem; align-items: center; padding: 1rem 1.3rem; background: var(--mhr-majorelle-deep); color: #fff; }
.mhr-prose .mht-day__head p { margin: 0; text-align: left; }
.mhr-prose .mht-day__t { grid-column: 2; grid-row: 1; }
.mhr-prose .mht-day__r { grid-column: 2; grid-row: 2; }
.mhr-prose .mht-day__n { grid-column: 1; grid-row: 1 / 3; display: grid; place-items: center; width: 2.6rem; height: 2.6rem; border-radius: 50%; background: var(--mhr-saffron); color: var(--mhr-majorelle-deep); font-family: var(--mhr-serif); font-size: 1.35rem; font-weight: 700; }
.mhr-prose .mht-day__t { font-family: var(--mhr-serif); font-size: 1.2rem; font-weight: 600; color: #fff; }
.mhr-prose .mht-day__r { font-family: var(--mhr-sans); font-size: .84rem; color: rgba(255, 255, 255, .75); }
.mhr-prose .mht-day__list { margin: 0 !important; padding: .6rem 1.3rem 1rem !important; list-style: none; counter-reset: none; }
.mhr-prose .mht-day__list li { position: relative; display: grid; grid-template-columns: 3.6rem 1fr; gap: .9rem; padding: .7rem 0 .7rem; margin: 0; }
.mhr-prose .mht-day__list li::before { content: ""; position: absolute; left: 4.05rem; top: 0; bottom: 0; width: 1px; background: rgba(30, 50, 140, .15); }
.mhr-prose .mht-day__list li::after { content: ""; position: absolute; left: 3.85rem; top: 1.05rem; width: .45rem; height: .45rem; border-radius: 50%; background: var(--mhr-majorelle); }
.mhr-prose .mht-day__list li.is-key::after { width: .6rem; height: .6rem; left: 3.78rem; background: var(--mhr-saffron); box-shadow: 0 0 0 4px rgba(242, 196, 107, .25); }
.mhr-prose .mht-day__list li p { margin: 0; padding-left: .7rem; }
.mhr-prose .mht-day__time { font-family: var(--mhr-sans); font-size: .85rem; font-weight: 700; color: var(--mhr-majorelle); padding-top: .15rem; }

/* ---------- Grouped lists ---------- */
.mhr-prose .mht-lists { display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: .9rem; margin: 1.6rem 0 2rem; }
.mhr-prose .mht-list { padding: 1.1rem 1.2rem 1.2rem; border-radius: 14px; border: 1px solid rgba(30, 50, 140, .14); background: #fff; }
.mhr-prose .mht-list h3 { margin: 0 0 .5rem !important; padding: 0 !important; border: 0 !important; font-size: 1.1rem; }
.mhr-prose .mht-list ul { margin: 0 !important; padding: 0 !important; list-style: none; }
.mhr-prose .mht-list li { position: relative; margin: 0; padding: .35rem 0 .35rem 1.5rem; font-size: .98rem; line-height: 1.5; }
.mhr-prose .mht-list li::before { content: ""; position: absolute; left: .2rem; top: .78em; width: .5rem; height: .5rem; rotate: 45deg; background: var(--mhr-majorelle); }
.mhr-prose .mht-list--good { background: #f2f9f5; border-color: #cfe7da; }
.mhr-prose .mht-list--good h3 { color: #1f6b48; }
.mhr-prose .mht-list--good li::before { background: #2f9a68; }
.mhr-prose .mht-list--bad { background: #fcf3f0; border-color: #efd3ca; }
.mhr-prose .mht-list--bad h3 { color: #9c3a26; }
.mhr-prose .mht-list--bad li::before { background: #c8553d; }

/* ---------- Checklist ---------- */
.mhr-prose .mht-check { margin: 1.6rem 0 2rem; padding: 1.2rem 1.4rem; border-radius: 14px; background: #f6f4ee; border: 1px solid rgba(30, 50, 140, .1); }
.mhr-prose .mht-check__t { margin: 0 0 .6rem; font-family: var(--mhr-sans); font-size: .85rem; font-weight: 700; color: var(--mhr-majorelle-deep); }
.mhr-prose .mht-check ul { display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: .2rem 1.2rem; margin: 0 !important; padding: 0 !important; list-style: none; }
.mhr-prose .mht-check li { position: relative; margin: 0; padding: .35rem 0 .35rem 1.7rem; font-size: .97rem; line-height: 1.45; }
.mhr-prose .mht-check li::before { content: ""; position: absolute; left: 0; top: .45rem; width: 1.05rem; height: 1.05rem; border-radius: 4px; background: #2f9a68 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 80% no-repeat; }

/* ---------- Scorecard ---------- */
.mhr-prose .mht-score { margin: 1.6rem 0 2.2rem; padding: 1.4rem 1.5rem 1.5rem; border-radius: 16px; border: 1px solid rgba(30, 50, 140, .14); background: #fff; }
.mhr-prose .mht-score__head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding-bottom: 1rem; border-bottom: 1px solid rgba(30, 50, 140, .1); }
.mhr-prose .mht-score__head p { margin: 0; }
.mhr-prose .mht-score__t { font-family: var(--mhr-serif); font-size: 1.2rem; font-weight: 600; }
.mhr-prose .mht-score__s { font-family: var(--mhr-sans); font-size: .82rem; color: #5a6072; }
.mhr-prose .mht-score__all { display: grid; place-items: center; min-width: 5.2rem; padding: .55rem .8rem; border-radius: 12px; background: var(--mhr-majorelle-deep); color: #fff; text-align: center; }
.mhr-prose .mht-score__n { font-family: var(--mhr-serif); font-size: 1.9rem; font-weight: 700; line-height: 1; color: #f2c46b; }
.mhr-prose .mht-score__l { font-family: var(--mhr-sans); font-size: .7rem; font-weight: 600; margin-top: .2rem; }
.mhr-prose .mht-score__rows { display: grid; gap: .7rem; padding: 1.1rem 0 .4rem; }
.mhr-prose .mht-score__row { display: grid; grid-template-columns: minmax(8rem, 13rem) 1fr 2.4rem; gap: .9rem; align-items: center; }
.mhr-prose .mht-score__k { font-family: var(--mhr-sans); font-size: .88rem; font-weight: 600; }
.mhr-prose .mht-score__bar { position: relative; height: .55rem; border-radius: 999px; background: #eceae3; overflow: hidden; }
.mhr-prose .mht-score__bar::after { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--v, 50%); border-radius: inherit; background: linear-gradient(90deg, var(--mhr-majorelle), var(--mhr-saffron)); transform-origin: left; transition: transform 1.2s var(--mht-ease) .2s; }
.mhr-js .mhr-prose .mht-score:not(.is-in) .mht-score__bar::after { transform: scaleX(0); }
.mhr-prose .mht-score__v { font-family: var(--mhr-sans); font-size: .9rem; font-weight: 700; text-align: right; color: var(--mhr-majorelle-deep); }
.mhr-prose .mht-score .mht-lists { margin: 1rem 0 0; }
@media (max-width: 559px) {
	.mhr-prose .mht-score__row { grid-template-columns: 1fr 2.2rem; }
	.mhr-prose .mht-score__bar { grid-column: 1 / -1; grid-row: 2; }
}

/* ---------- Route legs ---------- */
.mhr-prose .mht-route { position: relative; margin: 1.6rem 0 2rem; padding-left: 2rem; }
.mhr-prose .mht-route::before { content: ""; position: absolute; left: .55rem; top: .6rem; bottom: .6rem; border-left: 2px dashed rgba(30, 50, 140, .3); }
.mhr-prose .mht-leg { position: relative; margin: 0 0 1rem; padding: 1rem 1.2rem 1.1rem; border-radius: 14px; border: 1px solid rgba(30, 50, 140, .14); background: #fff; }
.mhr-prose .mht-leg::before { content: ""; position: absolute; left: -1.85rem; top: 1.2rem; width: .9rem; height: .9rem; border-radius: 50%; background: #fff; border: 3px solid var(--mhr-majorelle); }
.mhr-prose .mht-leg:last-child::before { border-color: var(--mhr-saffron); background: var(--mhr-saffron); }
.mhr-prose .mht-leg p { margin: .5em 0 0; }
.mhr-prose .mht-leg__k { margin: 0 !important; font-family: var(--mhr-sans); font-size: .76rem; font-weight: 700; color: var(--mhr-majorelle); }
.mhr-prose .mht-leg h3 { margin: .25rem 0 0 !important; padding: 0 !important; border: 0 !important; font-size: 1.15rem; }

/* Hand-built blocks arrive with the reader. */
@media (prefers-reduced-motion: no-preference) {
	.mhr-js .mhr-prose :is(.mht-stats, .mht-seasons, .mht-day, .mht-lists, .mht-score, .mht-leg, .mht-check, .mht-diary) { transition: opacity .8s ease, translate .9s var(--mht-ease); }
	.mhr-js .mhr-prose :is(.mht-stats, .mht-seasons, .mht-day, .mht-lists, .mht-score, .mht-leg, .mht-check, .mht-diary):not(.is-in) { opacity: 0; translate: 0 1.1rem; }
}