/* Only the Morocco landing uses the same warm canvas behind its shared header.
   This changes no header or hero dimensions and leaves every other page intact. */
body.morocco-organizations-page {
    background: #faf7f0;
}
body.morocco-organizations-page.td-compact-header .main-header,
body.morocco-organizations-page.td-compact-header .main-header .header-top,
body.morocco-organizations-page.td-compact-header .main-header .header-sub {
    background-color: #faf7f0 !important;
}

.morocco-org {
    --mo-ink: #27312a;
    --mo-dark: #1e352e;
    --mo-muted: #58635b;
    --mo-sand: #f7f2e8;
    --mo-cream: #fffdf8;
    --mo-terracotta: #a56048;
    --mo-line: #ddd5c7;
    --mo-green: #176d48;
    --mo-gold: #bb9454;
    color: var(--mo-ink);
    background: var(--mo-cream);
    font-family: 'Ubuntu', system-ui, sans-serif;
    -webkit-font-smoothing: antialiased;
}
.morocco-org, .morocco-org *, .morocco-org *::before, .morocco-org *::after { box-sizing: border-box; }
.morocco-org a { color: inherit; text-decoration: none; }
.morocco-org img { display: block; max-width: 100%; }
.morocco-org figure, .morocco-org h1, .morocco-org h2, .morocco-org h3, .morocco-org p { margin: 0; }
.morocco-org p { line-height: 1.7; }
.morocco-org__frame { width: min(1200px, calc(100% - 68px)); margin-inline: auto; }
.morocco-org__eyebrow { display: flex; align-items: center; flex-wrap: wrap; gap: 13px; font-size: .74rem; letter-spacing: .19em; font-weight: 700; text-transform: uppercase; color: var(--mo-terracotta); margin-bottom: 23px !important; line-height: 1.45 !important; }
.morocco-org__eyebrow > span:not(.morocco-org__sun) { color: #adada2; }
.morocco-org__sun { color: var(--mo-gold); font-size: 1.35rem; line-height: .6; }
.morocco-org h1, .morocco-org h2 { font-family: 'Playfair Display', Georgia, serif; font-weight: 600; letter-spacing: -.034em; text-wrap: balance; }
.morocco-org h1 { max-width: 690px; font-size: clamp(3rem, 4.7vw, 5.65rem); line-height: 1.1; }
.morocco-org h1 em { font-style: italic; color: #a7674e; white-space: nowrap; }
/* The longer native French headline must wrap inside its own grid column,
   rather than push "d’être découvertes." across the adjacent Atlas image. */
.morocco-org[lang="fr"] h1 { max-width: 100%; font-size: clamp(2.7rem, 4.25vw, 5.1rem); }
.morocco-org[lang="fr"] h1 em { white-space: normal; overflow-wrap: break-word; hyphens: auto; }
.morocco-org h2 { font-size: clamp(2.25rem, 3.5vw, 3.95rem); line-height: 1.19; }
.morocco-org h3 { font-size: 1.18rem; font-weight: 700; line-height: 1.35; }
.morocco-org__hero {
    background:
      radial-gradient(ellipse at 7% 21%, rgba(207,176,132,.20), transparent 42%),
      linear-gradient(114deg,#faf7f0 5%,#f3eddf 100%);
    overflow: hidden;
    position: relative;
}
.morocco-org__hero::before {
    content: "";
    position: absolute; inset: 0 auto 0 0; width: 80px; pointer-events: none; opacity: .37;
    background: repeating-linear-gradient(135deg, transparent 0 28px, rgba(162,125,93,.10) 29px 30px, transparent 31px 58px);
    -webkit-mask-image: linear-gradient(to right,#000,transparent);
    mask-image: linear-gradient(to right,#000,transparent);
}
.morocco-org__topline { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 27px 0 0; color: var(--mo-muted); }
.morocco-org__crumbs { display: flex; align-items: center; gap: 13px; flex-wrap: wrap; font-size: .85rem; }
.morocco-org__crumbs a { text-underline-offset: 3px; }
.morocco-org__crumbs a:hover { text-decoration: underline; }
.morocco-org__crumbs span[aria-hidden] { color: #b6a99a; }
.morocco-org__locale { font-size: .75rem; font-weight: 700; letter-spacing: .12em; white-space: nowrap; color: #847565; }
.morocco-org__locale span { color: var(--mo-gold); padding-inline: 5px; }
.morocco-org__hero-grid { display: grid; grid-template-columns: minmax(0,1.05fr) minmax(0,.95fr); align-items: center; gap: clamp(36px,5.4vw,84px); padding-block: 63px 51px; }
.morocco-org__hero-copy { position: relative; z-index: 1; padding-bottom: 20px; }
.morocco-org__lead { margin-top: 30px !important; max-width: 550px; font-size: clamp(1.07rem, 1.5vw,1.27rem); line-height: 1.62 !important; color: #31453a; font-weight: 500; }
.morocco-org__intro { max-width: 550px; margin-top: 18px !important; color: var(--mo-muted); font-size: .98rem; line-height: 1.83 !important; }
.morocco-org__intro strong { font-weight: 700; color: var(--mo-dark); }
.morocco-org__hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 20px 28px; margin-top: 33px; }
.morocco-org__button {
    display: inline-flex; gap: 24px; align-items: center; justify-content: center; min-height: 54px;
    padding: 14px 22px; border-radius: 4px; background: var(--mo-green); color: #fff !important;
    font-size: .91rem; font-weight: 700; box-shadow: 0 12px 25px rgba(24,91,59,.12);
    transition: background-color .2s ease, transform .2s ease; text-align: center;
}
.morocco-org__button span { font-size: 1.26rem; font-weight: 400; line-height: .8; }
.morocco-org__button:hover { background: #0e5136; transform: translateY(-2px); }
.morocco-org__button:focus-visible, .morocco-org a:focus-visible { outline: 3px solid var(--mo-terracotta); outline-offset: 4px; }
.morocco-org__text-link { display: inline-flex; align-items: center; gap: 13px; font-weight: 700; font-size: .87rem; color: var(--mo-green) !important; padding-bottom: 3px; border-bottom: 1px solid rgba(23,109,72,.5); }
.morocco-org__text-link:hover { color: #114a33 !important; border-color: currentColor; }
.morocco-org__hero-note { max-width: 500px; color: #847969; font-size: .8rem; margin-top: 25px !important; }
.morocco-org__hero-visual { position: relative; padding: 12px 0 17px 12px; min-width: 0; }
.morocco-org__hero-visual::before {
    content: ""; position: absolute; inset: -12px 30px 27px -9px; border: 1px solid rgba(166,115,78,.38);
    border-radius: 180px 180px 6px 6px; pointer-events: none; transform: rotate(-1.4deg);
}
.morocco-org__photo-frame { height: min(580px,45vw); min-height: 415px; overflow: hidden; border-radius: 220px 220px 6px 6px; background: #d1bb98; box-shadow: 0 27px 54px rgba(71,53,36,.14); }
.morocco-org__photo-frame img { width: 100%; height: 100%; object-fit: cover; object-position: 51% center; filter: saturate(.84) contrast(.94); }
.morocco-org__hero-visual figcaption { margin-top: 13px; font-size: .77rem; color: #6d6a5e; display: flex; align-items: center; gap: 8px; }
.morocco-org__caption-dot { width: 7px; height: 7px; background: var(--mo-terracotta); border-radius: 50%; }
.morocco-org__hero-ornament { position: absolute; right: -16px; bottom: 47px; width: 61px; height: 61px; transform: rotate(45deg); opacity: .9; border: 2px solid #d3a35f; border-radius: 17px; pointer-events: none; }
.morocco-org__hero-foot { border-top: 1px solid rgba(137,109,83,.25); padding: 20px 0 25px; display: flex; justify-content: space-between; gap: 15px; align-items: center; color: #8d7d6d; font-size: .68rem; letter-spacing: .15em; font-weight: 700; }
.morocco-org__rule { height: 1px; flex: 1; max-width: 65px; background: #c5b5a0; }
.morocco-org__section { padding: 95px 0; }
.morocco-org__section--intro { background: #fffcf8; position: relative; z-index: 2; }
.morocco-org__intro-layout { display: grid; grid-template-columns: 1.06fr .94fr; gap: clamp(50px,9vw,150px); position: relative; }
.morocco-org__intro-layout h2 { max-width: 590px; }
.morocco-org__editorial-copy { padding-top: 35px; font-size: 1.02rem; color: #4f5750; }
.morocco-org__editorial-copy p + p { margin-top: 17px; }
.morocco-org__aside-note { border-left: 2px solid var(--mo-gold); padding-left: 18px; margin-top: 24px !important; font-size: .91rem; color: #826b5b; }
.morocco-org__source-note { margin-top: 21px !important; font-size: .8rem; color: #777267; line-height: 1.7; }
.morocco-org__source-note a { text-decoration: underline; text-underline-offset: 3px; }
.morocco-org__section--stories { background: #f3f0e8; }
.morocco-org__section-heading { display: grid; grid-template-columns: 1.15fr .65fr; gap: 80px; align-items: end; margin-bottom: 44px; }
.morocco-org__section-heading h2 { max-width: 800px; }
.morocco-org__section-heading > p { color: #65695f; font-size: 1rem; max-width: 300px; padding-bottom: 4px; }
.morocco-org__story-grid { display: grid; grid-template-columns: .98fr 1.02fr; gap: 22px; align-items: stretch; }
.morocco-org__story { background: var(--mo-cream); min-width: 0; overflow: hidden; }
.morocco-org__story-image { height: 355px; overflow: hidden; background: #e6dac4; }
.morocco-org__collage { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, .86fr); grid-template-rows: minmax(0, 1fr) minmax(0, 1fr); gap: 5px; }
.morocco-org__collage--activity { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); grid-template-rows: minmax(0, 1.27fr) minmax(0, .73fr); }
.morocco-org__collage .morocco-org__tile { display: block; width: 100%; height: 100%; min-height: 0; min-width: 0; object-fit: cover; filter: saturate(.92); transition: filter .25s ease; }
.morocco-org__collage .morocco-org__tile--main { grid-column: 1; grid-row: 1 / 3; object-position: center; }
.morocco-org__collage .morocco-org__tile--upper { grid-column: 2; grid-row: 1; object-position: center; }
.morocco-org__collage .morocco-org__tile--lower { grid-column: 2; grid-row: 2; object-position: center; }
.morocco-org__collage--stay .morocco-org__tile--main { object-position: 50% 48%; }
.morocco-org__collage--stay .morocco-org__tile--upper { object-position: center 70%; }
.morocco-org__collage--stay .morocco-org__tile--lower { object-position: center 50%; }
.morocco-org__collage--activity .morocco-org__tile--main { object-position: center 44%; }
.morocco-org__collage--activity .morocco-org__tile--upper { object-position: center 48%; }
.morocco-org__collage--activity .morocco-org__tile--lower { object-position: center 64%; }
.morocco-org__story:hover .morocco-org__tile { filter: saturate(1); }
.morocco-org__story figcaption { display: flex; flex-direction: column; gap: 10px; padding: 26px 29px 29px; }
.morocco-org__story-index { font-size: .72rem; letter-spacing: .16em; color: var(--mo-terracotta); font-weight: 800; }
.morocco-org__story figcaption strong { font-family: 'Playfair Display', Georgia, serif; font-size: clamp(1.45rem,2vw,1.9rem); line-height: 1.25; font-weight: 600; }
.morocco-org__story figcaption > span:last-child { color: #65675f; font-size: .94rem; line-height: 1.6; }
.morocco-org__story-disclaimer { font-size: .75rem; color: #786f61; margin-top: 15px !important; }
.morocco-org__ribbon { margin-top: 47px; padding: 20px 24px; border-top: 1px solid #d1c8b7; border-bottom: 1px solid #d1c8b7; font-size: .93rem; line-height: 1.7; letter-spacing: .012em; color: #60635b; text-align: center; }
.morocco-org__ribbon span { color: #354c3c; font-weight: 800; }
.morocco-org__ribbon b { color: var(--mo-terracotta); font-weight: 600; padding-inline: 5px; }

/* Oversized editorial accents deliberately float across section/grid boundaries.
   Absolute positioning means doubling their size adds NO section height or column width. */
.morocco-org__accent { margin: 0; pointer-events: none; }
.morocco-org__accent img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 5px; }
.morocco-org__accent--weaving {
    position: absolute;
    right: 39%;
    bottom: -243px;
    z-index: 3;
    width: 184px;
    height: 216px;
    margin: 0 !important;
    max-width: none;
    transform: rotate(-3deg);
    border: 5px solid #fffaf1;
    background: #e4d1b5;
    box-shadow: 0 16px 34px rgba(68,51,33,.17);
}
.morocco-org__accent--weaving img { object-position: center 37%; }
.morocco-org__accent--weaving figcaption {
    position: absolute;
    left: 8px;
    right: 8px;
    bottom: 8px;
    max-width: none;
    padding: 6px 8px;
    color: #6f5543;
    background: rgba(255,251,244,.94);
    font-size: .7rem;
    font-style: normal;
    line-height: 1.3;
}
.morocco-org__approach-reference { position: relative; display: block; max-width: 515px; }
.morocco-org__approach-reference > a { margin-bottom: 0; }
.morocco-org__accent--jewelry {
    position: absolute;
    right: -168px;
    top: calc(100% - 56px);
    z-index: 3;
    width: 204px;
    height: 230px;
    transform: rotate(3deg);
    border: 5px solid #fff9ee;
    background: #b48761;
    box-shadow: 0 15px 34px rgba(67,54,39,.17);
}
.morocco-org__photo-sources { flex: 1 1 100%; color: #776e62; font-size: .72rem; }
.morocco-org__photo-sources summary { cursor: pointer; display: inline-block; text-decoration: underline; text-underline-offset: 3px; }
.morocco-org__photo-sources p { padding-top: 10px; max-width: 950px; }

/* Native fallback for direct URLs and scripts-disabled visitors.
   In-page links use no animated scrolling and retain clear header space. */
.morocco-org__section--approach,
.morocco-org__photo-sources { scroll-margin-top: 96px; }
.morocco-org__section--approach { background: #fffdf8; position: relative; z-index: 2; }
.morocco-org__approach-grid { display: grid; grid-template-columns: 1fr .88fr; gap: clamp(56px,9vw,132px); }
.morocco-org__approach-grid h2 { max-width: 570px; }
.morocco-org__approach-lead { font-size: 1.04rem; color: #626960; margin-top: 24px !important; margin-bottom: 23px !important; max-width: 515px; }
.morocco-org__text-link--dark { color: var(--mo-dark) !important; border-color: #98a49a; }
.morocco-org__steps { display: flex; flex-direction: column; border-top: 1px solid var(--mo-line); margin-top: 20px; }
.morocco-org__step { display: grid; grid-template-columns: 48px 1fr; gap: 22px; padding: 28px 0; border-bottom: 1px solid var(--mo-line); }
.morocco-org__step > span { font-family: Georgia,serif; font-size: 1.6rem; color: #b99073; }
.morocco-org__step p { margin-top: 8px !important; font-size: .94rem; color: #616960; line-height: 1.65; }
.morocco-org__section--terms { background: #efe5d7; padding: 77px 0 83px; }
.morocco-org__terms-grid { display: grid; grid-template-columns: minmax(120px,.36fr) 1.6fr; gap: 60px; align-items: center; }
.morocco-org__terms-mark { width: 152px; height: 152px; display: flex; align-items: center; justify-content: center; border: 1px solid #cda986; color: #b87f5b; transform: rotate(45deg); border-radius: 25px; }
.morocco-org__terms-mark span { font-size: 4.2rem; line-height: 1; transform: rotate(-45deg); }
.morocco-org__terms-grid h2 { max-width: 690px; }
.morocco-org__terms-grid p:not(.morocco-org__eyebrow) { max-width: 760px; margin-top: 19px; font-size: 1.025rem; color: #4e564c; }
.morocco-org__terms-grid .morocco-org__terms-small { font-size: .82rem !important; color: #756f63 !important; }
.morocco-org__final { background: #25443a; color: #f7f4e8; padding: 92px 0 101px; position: relative; overflow: hidden; }
.morocco-org__final::after { content:""; position: absolute; pointer-events: none; right:-70px; top:-180px; width:520px; height:520px; border:1px solid rgba(246,213,158,.15); border-radius: 50%; box-shadow: 0 0 0 36px rgba(246,213,158,.027),0 0 0 90px rgba(246,213,158,.018); }
.morocco-org__final-grid { display: grid; grid-template-columns: 1.13fr .6fr; gap: clamp(80px,11vw,155px); align-items: center; position: relative; z-index: 1; }
.morocco-org__final .morocco-org__eyebrow { color: #f0cba0; }
.morocco-org__final h2 { max-width: 730px; font-size: clamp(2.75rem,4.3vw,4.7rem); }
.morocco-org__final p:not(.morocco-org__eyebrow) { color: #dde4d9; font-size: 1rem; max-width: 640px; margin-top: 22px; }
.morocco-org__button--light { background: #f2ede0; color: #22483a !important; box-shadow: none; margin-top: 26px; }
.morocco-org__button--light:hover { background: #fff; }
.morocco-org__individual-note { margin-top: 19px !important; font-size: .83rem !important; color: #d2dfd5 !important; }
.morocco-org__individual-note a { display: inline-flex; align-items: center; gap: 4px; color: #fff !important; text-decoration: underline; text-underline-offset: 4px; font-weight: 700; }
.morocco-org__individual-note a:hover { color: #f3dcb8 !important; }
.morocco-org__final-side { border-left: 1px solid rgba(240,223,193,.35); padding-left: 35px; }
.morocco-org__final-side .morocco-org__final-emblem { font-size: 2.2rem; line-height: 1; color: #dab481; margin-bottom: 12px; }
.morocco-org__final-side p { margin-top: 0 !important; font-size: .96rem !important; line-height: 1.85; }
.morocco-org__final-side small { display: block; color: #b4c4b8; margin-top: 21px; font-size: .78rem; line-height: 1.55; }
.morocco-org__credits { background: #f8f5ee; border-top: 1px solid #e7dfd2; font-size: .73rem; color: #6e746b; padding: 22px 0; }
.morocco-org__credits .morocco-org__frame { display: flex; justify-content: space-between; gap: 16px 45px; flex-wrap: wrap; }
.morocco-org__credits a { text-decoration: underline; text-underline-offset: 2px; }
@media (max-width: 1020px) {
    .morocco-org__hero-grid { gap: 39px; }
    .morocco-org h1 { font-size: clamp(2.8rem,4.7vw,4.65rem); }
    .morocco-org__photo-frame { min-height: 400px; }
    .morocco-org__final-grid { gap: 55px; }
}
@media (max-width: 800px) {
    .morocco-org__frame { width: min(660px, calc(100% - 44px)); }
    .morocco-org__hero-grid, .morocco-org__intro-layout, .morocco-org__section-heading,
    .morocco-org__approach-grid, .morocco-org__terms-grid, .morocco-org__final-grid { grid-template-columns: 1fr; gap: 30px; }
    .morocco-org__hero-grid { padding-top: 47px; padding-bottom: 30px; }
    .morocco-org__hero-copy { padding-bottom: 0; }
    .morocco-org__photo-frame { height: min(600px,80vw); min-height: 365px; }
    .morocco-org__hero-visual { width: min(510px,100%); margin: 0 auto; }
    .morocco-org__section { padding: 65px 0; }
    .morocco-org__editorial-copy { padding-top: 0; }
    .morocco-org__section-heading { align-items: start; }
    .morocco-org__section-heading > p { max-width: 620px; }
    .morocco-org__terms-mark { height: 94px; width: 94px; border-radius: 20px; margin: 20px 0; }
    .morocco-org__terms-mark span { font-size: 3.2rem; }
    .morocco-org__final { padding: 65px 0; }
    .morocco-org__final-side { padding-left: 25px; }
}
/* Mid-width two-column layouts have a narrower gutter. Keep the jewellery
   below the text link here instead of allowing its overlay to cover the label. */
@media (min-width: 801px) and (max-width: 1120px) {
    .morocco-org__accent--jewelry {
        right: -104px;
        top: calc(100% + 14px);
    }
}
@media (max-width: 700px) {
    .morocco-org__collage { gap: 4px; }
}
/* On one-column layouts, floating photos would cover the readable copy.
   Hide only these decorative accents instead of allocating new vertical space. */
@media (max-width: 800px) {
    .morocco-org__accent--weaving,
    .morocco-org__accent--jewelry { display: none; }
}
@media (max-width: 560px) {
    .morocco-org__frame { width: calc(100% - 36px); }
    .morocco-org__topline { padding-top: 18px; }
    .morocco-org__crumbs { font-size: .73rem; gap: 8px; }
    .morocco-org__locale { font-size: .64rem; }
    .morocco-org__hero-grid { padding-top: 45px; }
    .morocco-org h1 { font-size: clamp(2.78rem,11.5vw,4.1rem); line-height: 1.11; }
    .morocco-org h1 em { white-space: normal; }
    .morocco-org__lead { margin-top: 22px !important; font-size: 1.075rem; }
    .morocco-org__intro { font-size: .94rem; }
    .morocco-org__hero-actions { margin-top: 28px; gap: 20px; }
    .morocco-org__button { width: 100%; justify-content: space-between; }
    .morocco-org__hero-note { font-size: .74rem; }
    .morocco-org__photo-frame { min-height: 305px; height: 105vw; max-height: 430px; border-radius: 160px 160px 6px 6px; }
    .morocco-org__hero-visual::before { border-radius: 170px 170px 6px 6px; }
    .morocco-org__hero-ornament { width: 42px; height: 42px; bottom: 44px; right: -6px; }
    .morocco-org__hero-foot { justify-content: center; gap: 15px; text-align: center; font-size: .6rem; line-height: 1.5; letter-spacing: .07em; }
    .morocco-org__hero-foot .morocco-org__rule { display:none; }
    .morocco-org__hero-foot span:last-child { display:none; }
    .morocco-org__eyebrow { letter-spacing: .12em; font-size: .68rem; }
    .morocco-org h2 { font-size: clamp(2.15rem,8vw,2.9rem); }
    .morocco-org__story-grid { grid-template-columns: 1fr; gap: 18px; }
    .morocco-org__story-image { height: 315px; }
    .morocco-org__story figcaption { padding: 22px; }
    .morocco-org__ribbon { margin-top: 30px; padding-inline: 8px; font-size: .83rem; }
    .morocco-org__step { grid-template-columns: 36px 1fr; gap: 15px; }
    .morocco-org__steps { margin-top: 5px; }
    .morocco-org__final-side { border-left: 0; border-top: 1px solid rgba(240,223,193,.35); padding: 26px 0 0; }
    .morocco-org__terms-grid { gap: 0; }
    .morocco-org__terms-mark { margin: 10px 0 34px; }
}
@media (prefers-reduced-motion: reduce) {
    .morocco-org__button, .morocco-org__collage img { transition: none !important; }
    .morocco-org__button:hover { transform: none; }
}
