/* Shared action colours and verified section cadence. */
:root{--em-action-orange:#b76518;--em-action-blue:#213b52}
[data-em-action]{background:var(--em-action-orange)!important;color:#fff!important;border-color:transparent!important;text-shadow:none!important;min-height:44px}
[data-em-action][data-em-action-on-orange="true"]{background:var(--em-action-blue)!important}
[data-em-action] :is(span,strong,b){color:#fff!important;text-shadow:none!important}
[data-em-action="arrow"]{width:48px!important;height:48px!important;min-width:48px!important;min-height:48px!important;flex:0 0 48px!important;padding:0!important;border:0!important;border-radius:50%!important;display:inline-grid!important;place-items:center!important;font-size:24px!important;line-height:1!important;box-shadow:none!important}
[data-em-action="arrow"] svg,[data-em-action="arrow"] svg *{color:#fff!important;stroke:#fff!important}
[data-em-action="arrow"] svg [fill]:not([fill="none"]){fill:#fff!important}
[data-em-action]:focus-visible{outline:3px solid var(--em-action-blue)!important;outline-offset:4px!important;box-shadow:0 0 0 7px #fffaf1!important}
[data-em-action]:disabled{opacity:.4!important;cursor:default!important}
.explore-library [hidden]{display:none!important}
/* These annotations are derived from verified paint layers. Their source
   scope also resolves the legacy ID selectors without changing other layers. */
body main #discover.slide-section.band.em-clean-before::before,
body main #architecture-craft.em-clean-before::before,
body main #events-festivals.em-clean-before::before,
body main #guides.em-clean-root,
body main #plan-morocco.em-clean-after::after,
body main #stories.em-clean-before::before,
body main#main-content #start-with-the-right-map.em-clean-root,
body.em-learn-page main#main-content #explore.em-clean-before::before,
body.em-learn-page main#main-content #practice.em-clean-before::before,
body.em-learn-page main#main-content #questions.em-clean-before::before,
body.em-learn-page main#main-content #understand.em-clean-before::before,
body.em-learn-page main#main-content section.lr-section.lr-layers.em-ornament-zellige.em-clean-before::before,
body.em-mfc-page.em-couscous-page.em-recipe-page main#main-content #couscous-pantry.em-clean-before::before,
body.em-mfc-page.em-drinks-page.em-recipe-page main#main-content #drinks-ingredients.em-clean-before::before,
body.em-mfc-page.em-food-restaurants-page.em-recipe-page main#main-content #fr-menu.em-clean-before::before,
body.em-mfc-page.em-harira-page.em-recipe-page main#main-content #harira-pantry.em-clean-before::before,
body.em-mfc-page.em-meal-page.em-recipe-page main#main-content #rhythm-elements.em-clean-before::before,
body.em-mfc-page.em-mint-tea-page.em-recipe-page main#main-content #mint-tea-pantry.em-clean-before::before,
body.em-mfc-page.em-pantry-page.em-recipe-page main#main-content #pantry-essentials.em-clean-before::before,
body.em-mfc-page.em-pastilla-page.em-recipe-page main#main-content #pastilla-pantry.em-clean-before::before,
body.em-mfc-page.em-rfissa-page.em-recipe-page main#main-content #rfissa-pantry.em-clean-before::before,
body.em-mfc-page.em-soups-page.em-recipe-page main#main-content #soups-pantry.em-clean-before::before,
body.em-mfc-page.em-tagine-page.em-amlou-page.em-recipe-page main#main-content #amlou-pantry.em-clean-before::before,
body.em-mfc-page.em-tagine-page.em-breakfast-page.em-recipe-page main#main-content #breakfast-pantry.em-clean-before::before,
body.em-mfc-page.em-tagine-page.em-briouats-page.em-recipe-page main#main-content #briouats-pantry.em-clean-before::before,
body.em-mfc-page.em-tagine-page.em-chebakia-page.em-recipe-page main#main-content #chebakia-pantry.em-clean-before::before,
body.em-mfc-page.em-tagine-page.em-desserts-page.em-recipe-page main#main-content #desserts-pantry.em-clean-before::before,
body.em-mfc-page.em-tagine-page.em-food-culture-route-page.em-recipe-page main#main-content #food-route-pantry.em-clean-before::before,
body.em-mfc-page.em-tagine-page.em-maakouda-page.em-recipe-page main#main-content #maakouda-pantry.em-clean-before::before,
body.em-mfc-page.em-tagine-page.em-main-dishes-page.em-recipe-page main#main-content #main-dishes-flavours.em-clean-before::before,
body.em-mfc-page.em-tagine-page.em-recipe-page main#main-content #baghrir-pantry.em-clean-before::before,
body.em-mfc-page.em-tagine-page.em-recipe-page main#main-content #harcha-pantry.em-clean-before::before,
body.em-mfc-page.em-tagine-page.em-recipe-page main#main-content #msemen-pantry.em-clean-before::before,
body.em-mfc-page.em-tagine-page.em-recipe-page main#main-content #street-food-essentials.em-clean-before::before,
body.em-mfc-page.em-tagine-page.em-recipe-page main#main-content #tagine-pantry.em-clean-before::before,
body.em-mfc-page.em-tagine-page.em-recipe-page.em-food-culture-page main#main-content #mfc-markets.em-clean-root,
body.em-mfc-page.em-tagine-page.em-recipe-page.em-food-culture-page main#main-content #mfc-tea.em-clean-before::before,
body.em-mfc-page.em-tagine-page.em-recipe-page.em-food-culture-page main#main-content #mfc-techniques.em-clean-root,
body.em-mfc-page.em-tagine-page.em-recipe-page.em-food-culture-page main#main-content #mfc-time.em-clean-before::before,
body.em-mfc-page.em-tagine-page.em-salads-page.em-recipe-page main#main-content #salads-pantry.em-clean-before::before,
body.em-mfc-page.em-tagine-page.em-sardines-page.em-recipe-page main#main-content #sardines-pantry.em-clean-before::before,
body.em-mfc-page.em-tagine-page.em-seafood-page.em-recipe-page main#main-content #seafood-pantry.em-clean-before::before,
body.em-mfc-page.em-tagine-page.em-seffa-page.em-recipe-page main#main-content #seffa-pantry.em-clean-before::before,
body.em-mfc-page.em-tagine-page.em-sellou-page.em-recipe-page main#main-content #sellou-pantry.em-clean-before::before,
body.em-mfc-page.em-tagine-page.em-sides-page.em-recipe-page main#main-content #sides-pantry.em-clean-before::before,
body.em-mfc-page.em-tagine-page.em-sweets-page.em-recipe-page main#main-content #sweets-pantry.em-clean-before::before,
body.em-mfc-page.em-tagine-page.em-taktouka-page.em-recipe-page main#main-content #taktouka-pantry.em-clean-before::before,
body.em-mfc-page.em-tagine-page.em-zaalouk-page.em-recipe-page main#main-content #zaalouk-pantry.em-clean-before::before,
body.em-mfc-page.em-tanjia-page.em-recipe-page main#main-content #tanjia-pantry.em-clean-before::before,
body.em-plan-hub main#main-content #culture.em-clean-before::before,
body.em-recipe-page.em-cuisine-page main#main-content #living-heritage.em-clean-root,
body.em-recipe-page.em-cuisine-page main#main-content #the-table.em-clean-before::before,
body.em-recipe-page.em-cuisine-page main#main-content section.rc-section.mc-ending.mc-dark.em-clean-root,
body.em-region-detail main#main-content #continue.em-clean-before::before,
body.em-region-detail main#main-content #map.em-clean-after::after,
body.em-region-detail main#main-content #route-voices.em-clean-before::before,
body.em-region-detail main#main-content #voices.em-clean-before::before,
body.themes-page main #recipes-food-culture.em-clean-before::before,
body.themes-page main #stories.em-clean-before::before,
body.themes-page.explore-page main#explore-main #learn-morocco.em-clean-before::before,
body.themes-page.explore-page main#explore-main #stories.em-clean-before::before{background-image:none!important}

.home-guides-scroll-area .home-guide-card{max-width:100%;min-width:0}
@media(min-width:1241px) and (max-width:1640px){
 .em-recipes-wrap{grid-template-columns:1fr!important}
 .em-recipes-intro{max-width:820px}
 .em-recipes-feature{min-height:0!important}
 .em-recipes-side{grid-template-columns:repeat(2,minmax(0,1fr))!important}
 .em-recipes-card{min-width:0;grid-template-columns:minmax(0,.7fr) minmax(0,1fr)!important}
}

body.stories-page #pathways .path-card{min-width:0!important;width:100%;max-width:100%!important}
body.stories-page #pathways .path-card .card-media{max-width:100%!important;min-width:0!important;height:auto!important;min-height:0!important;aspect-ratio:1!important}

/* Additional paint attribution from the final background contact sheet. */
body.stories-page main#main-content #zellige-morocco-s-geometry-of-light.em-clean-before::before,
body main #learn-morocco.slide-section.learn.em-learn-v22.em-clean-before::before{background-image:none!important}

/* Visual Chapter uses the measured Darija Hub situation-card grammar.
   Copy remains complete; row height follows its existing editorial content. */
:root{--em-visual-max:1520px;--em-visual-inset:56px;--em-visual-columns:calc((100% - 32px)/2.5);--em-visual-image:310px;--em-visual-gap:30px}
body:is(.em-learn-page,.em-darija-page,.em-darija-hub-page) .em-learn .lr-explore>.lr-wrap{width:min(var(--em-visual-max),calc(100% - var(--em-visual-inset)*2));max-width:none}
.em-learn .lr-explore .lr-track{grid-auto-columns:var(--em-visual-columns);gap:var(--em-visual-gap);padding:0 0 16px;border-radius:0}
.em-learn .lr-explore .lr-card{border-radius:34px;border:0;min-width:0}
.em-learn .lr-explore .lr-card>img,.em-learn .lr-explore .lr-card>a>img{width:100%;height:var(--em-visual-image);aspect-ratio:auto;object-fit:cover}
.em-learn .lr-explore .lr-card>div,.em-learn .lr-explore .lr-card>a>div{padding:28px 28px 30px;display:flex;flex-direction:column;flex:1}
.em-learn .lr-explore .lr-card h3{font:700 clamp(30px,2.2vw,42px)/.98 Georgia,serif;letter-spacing:-.03em;margin:14px 0}
.em-learn .lr-explore .lr-card p{font:15px/1.8 Arial,sans-serif;margin:16px 0}
.em-learn .lr-explore .lr-card .lr-eyebrow{font:700 10px/1.5 Arial,sans-serif;letter-spacing:.09em;margin:0;text-transform:uppercase}
.em-learn .lr-explore .lr-controls{margin-top:32px;gap:18px}
@media(max-width:1180px){:root{--em-visual-inset:32px;--em-visual-columns:67%}}
@media(max-width:760px){:root{--em-visual-inset:20px;--em-visual-columns:94%;--em-visual-gap:18px;--em-visual-image:285px}}
@media(max-width:360px){:root{--em-visual-inset:16px}}

/* Existing markers retain their size, count and indicator shape. */
[data-em-navigation] button::before,[data-em-navigation] button::after{background-color:var(--em-control-color)!important}
[data-em-marker]:not([aria-current="true"]):not(.active):not(.is-active){opacity:.35!important}
[data-em-marker][aria-current="true"],[data-em-marker].active,[data-em-marker].is-active{opacity:1!important}

/* Minimal foreground shadows on two visually verified high-key photographs.
   Photo pixels, hero geometry, menu colors and Search skin stay unchanged. */
body[data-em-high-key-photo="sky"] #em-canonical-header-v15 .em-canonical-nav-v15{filter:drop-shadow(0 1px 1px #142433) drop-shadow(0 0 2px #142433cc)}
body[data-em-high-key-photo="sand"] .em-hero-copy :is(h1,p,.em-title-line){text-shadow:0 1px 2px #142433,0 0 4px #14243380!important}
