/* Meridian growth layer: income share card, sponsor slots, partner shelf */
.mg{--mg-ink:#123847;--mg-teal:#147768;--mg-cream:#fffaf0;--mg-coral:#d9533a;--mg-gold:#e4b13b;--mg-line:#d5dcd6;font-family:Georgia,"Times New Roman",serif;color:var(--mg-ink);box-sizing:border-box}
.mg *,.mg *::before,.mg *::after{box-sizing:border-box}
.mg a:focus-visible,.mg button:focus-visible{outline:3px solid #254ba1;outline-offset:3px}

/* Hero income prompt */
.mg-hero-income{display:inline-flex;align-items:center;gap:.75rem;margin-top:1rem;padding:.9rem 1.2rem;border-radius:999px;background:var(--mg-cream);color:var(--mg-ink);text-decoration:none;font:600 1.05rem/1.3 Georgia,serif;box-shadow:0 6px 22px rgba(18,56,71,.28);max-width:100%}
.mg-hero-income b{display:inline-grid;place-items:center;width:2.1rem;height:2.1rem;border-radius:50%;background:var(--mg-teal);color:#fff;font:700 1rem/1 Arial,sans-serif;flex:none}
.mg-hero-income:hover{background:#fff}

/* Share card */
.mg-share{margin:1.5rem auto;max-width:760px;padding:1.4rem;border:2px solid var(--mg-ink);border-radius:18px;background:var(--mg-cream);display:grid;gap:1.1rem}
.mg-share h3{margin:0;font-size:clamp(1.35rem,4.5vw,1.8rem);line-height:1.2}
.mg-share p{margin:0;font-size:1.05rem;line-height:1.55}
.mg-share-preview{width:100%;height:auto;border-radius:10px;display:block;box-shadow:0 8px 24px rgba(18,56,71,.18)}
.mg-share-actions{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:.6rem}
.mg .mg-btn,.mg-btn{font-family:Arial,Helvetica,sans-serif!important}
.mg-btn{display:flex;align-items:center;justify-content:center;gap:.5rem;min-height:52px;padding:.75rem 1rem;border-radius:12px;border:2px solid var(--mg-ink);background:#fff;color:var(--mg-ink);font:700 1.02rem/1.2 Arial,Helvetica,sans-serif;text-decoration:none;cursor:pointer}
.mg-btn-primary{background:var(--mg-ink);color:#fff}
.mg-btn:hover{transform:translateY(-1px)}
.mg-share small{font:.9rem/1.4 Arial,sans-serif;color:#4a5d64}

/* Sponsor slot */
.mg-sponsor{max-width:1100px;margin:2.5rem auto;padding:0 1rem}
.mg-sponsor-inner{position:relative;display:grid;grid-template-columns:auto 1fr auto;gap:1.2rem;align-items:center;padding:1.3rem 1.4rem;border:1.5px dashed var(--mg-teal);border-radius:16px;background:#fff}
.mg-sponsor.is-live .mg-sponsor-inner{border-style:solid;border-color:var(--mg-line)}
.mg-sponsor-tag{position:absolute;top:-.7rem;left:1.1rem;padding:.15rem .6rem;border-radius:6px;background:var(--mg-gold);color:var(--mg-ink);font:700 .8rem/1.4 Arial,sans-serif}
.mg-sponsor-logo{width:72px;height:72px;border-radius:12px;object-fit:contain;background:var(--mg-cream)}
.mg-sponsor-mark{display:grid;place-items:center;width:72px;height:72px;border-radius:50%;border:2px solid var(--mg-teal);color:var(--mg-teal);font:700 1.6rem/1 Georgia,serif;transform:rotate(-8deg)}
.mg-sponsor h3{margin:0 0 .3rem;font-size:1.25rem;line-height:1.25}
.mg-sponsor p{margin:0;font:1rem/1.5 Arial,sans-serif;color:#33474f}
@media (max-width:640px){.mg-sponsor-inner{grid-template-columns:1fr;text-align:left}.mg-sponsor-mark,.mg-sponsor-logo{width:56px;height:56px;font-size:1.25rem}}

/* Founding sponsor banner on partners page */
.mg-founding{max-width:1100px;margin:2rem auto;padding:0 1rem}
.mg-founding-inner{display:grid;grid-template-columns:1.2fr 1fr;gap:1.5rem;padding:1.8rem;border-radius:20px;background:var(--mg-ink);color:#fff}
.mg-founding h2{margin:0 0 .6rem;font-size:clamp(1.6rem,5vw,2.3rem);line-height:1.15;color:#fff}
.mg-founding p{margin:0 0 .8rem;font:1.05rem/1.55 Arial,sans-serif;color:#e6eef0}
.mg-price{display:flex;align-items:baseline;gap:.4rem;margin:.2rem 0 .8rem}
.mg-price strong{font:700 3.2rem/1 Georgia,serif;color:var(--mg-gold)}
.mg-price span{font:1.05rem Arial,sans-serif;color:#e6eef0}
.mg-founding ul{margin:0;padding-left:1.1rem;font:1rem/1.6 Arial,sans-serif;color:#e6eef0}
.mg-founding .mg-btn{border-color:var(--mg-gold);background:var(--mg-gold);color:var(--mg-ink);margin-top:.6rem}
@media (max-width:760px){.mg-founding-inner{grid-template-columns:1fr}}

/* Partner shelf on Collective */
.mg-shelf{max-width:1100px;margin:3rem auto;padding:0 1rem}
.mg-shelf h2{margin:0 0 .5rem;font-size:clamp(1.6rem,5vw,2.2rem)}
.mg-shelf>p{margin:0 0 1.2rem;font:1.05rem/1.55 Arial,sans-serif;max-width:62ch}
.mg-shelf-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(250px,1fr));gap:1rem}
.mg-item{display:flex;flex-direction:column;border:1px solid var(--mg-line);border-radius:14px;overflow:hidden;background:#fff;text-decoration:none;color:inherit}
.mg-item img{width:100%;aspect-ratio:3/2;object-fit:cover}
.mg-item div{padding:1rem;display:grid;gap:.35rem}
.mg-item small{font:700 .8rem Arial,sans-serif;color:var(--mg-teal)}
.mg-item strong{font-size:1.15rem;line-height:1.3}
.mg-item span{font:.95rem/1.45 Arial,sans-serif;color:#33474f}
.mg-join{display:grid;grid-template-columns:1fr auto;gap:1rem;align-items:center;margin-top:1.2rem;padding:1.3rem;border-radius:16px;background:var(--mg-cream);border:2px solid var(--mg-ink)}
.mg-join h3{margin:0 0 .3rem;font-size:1.3rem}
.mg-join p{margin:0;font:1rem/1.5 Arial,sans-serif}
.mg-disclose{margin-top:.8rem;font:.88rem/1.4 Arial,sans-serif;color:#4a5d64}
@media (max-width:640px){.mg-join{grid-template-columns:1fr}}
@media (prefers-reduced-motion:reduce){.mg-btn:hover{transform:none}}

/* Rich styling to match the Collective look */
.mg-polaroid{margin:0;background:#fff;padding:10px 10px 34px;box-shadow:0 14px 34px rgba(0,0,0,.35);transform:rotate(-4deg);position:relative}
.mg-polaroid img{display:block;width:100%;aspect-ratio:4/3;object-fit:cover}
.mg-polaroid figcaption{position:absolute;left:0;right:0;bottom:6px;text-align:center;font:italic 1.15rem Georgia,serif;color:#123847}
.mg-btn-gold{background:#fbd38d;border-color:#fbd38d;color:#123847}
.mg-sponsor.is-open .mg-sponsor-inner{grid-template-columns:minmax(150px,240px) 1fr;gap:2rem;padding:2.2rem 1.8rem;border:0;border-radius:0;background:linear-gradient(120deg,#123847 0%,#1d4f5f 100%);color:#fff;overflow:hidden}
.mg-sponsor.is-open{max-width:none;padding:0;margin:3rem 0 0}
.mg-sponsor.is-open h3{color:#fff;font-size:clamp(1.5rem,5vw,2.1rem);margin:.6rem 0 .5rem}
.mg-sponsor.is-open p{color:#e6eef0;font-size:1.05rem;margin-bottom:1rem}
.mg-sponsor.is-open .mg-sponsor-tag{position:static;display:inline-block}
.mg-sponsor.is-open .mg-btn{display:inline-flex}
@media (max-width:640px){.mg-sponsor.is-open .mg-sponsor-inner{grid-template-columns:1fr}.mg-sponsor.is-open .mg-polaroid{max-width:230px;margin:0 auto .5rem}}
.mg-shelf{max-width:none;margin:0;padding:3.5rem max(1rem,calc((100% - 1100px)/2));background:#123847;color:#fff}
.mg-shelf h2{color:#fff;font-size:clamp(2rem,7vw,3rem)}
.mg-shelf>p{color:#e6eef0}
.mg-shelf-photos{display:flex;justify-content:center;margin:0 0 2rem;padding-top:.5rem}
.mg-shelf-photos .mg-polaroid{width:min(32%,220px);margin:0 -10px}
.mg-shelf-photos .mg-polaroid:nth-child(2){transform:rotate(3deg) translateY(14px);z-index:1}
.mg-shelf-photos .mg-polaroid:nth-child(3){transform:rotate(-2deg)}
.mg-shelf .mg-join{background:#fffaf0;color:#123847}
.mg-shelf .mg-item{color:#123847}
.mg-shelf .mg-disclose{color:#c9d6da}

/* Remove the "In this edition" box so the hero video shows. The Portugal button below the hero still links there. */
.cover-destination{display:none!important}
/* The hero video carries its own smooth motion, so stop the extra CSS movement and fade the still photo out cleanly */
body .home-hero-v3 .home-cover-video,body .home-hero-v3 .home-cover-fallback{animation:none!important;transform:none!important}

/* ===== Clean, single-path homepage ===== */
/* One hero button. Everything else in the hero goes. */
.home-hero-v3 .home-hero-actions,.home-hero-v3 .home-hero-prompts,.home-hero-v3 .cover-destination,.meridian-quick-nav{display:none!important}
.mg-hero-start{display:inline-flex;align-items:center;gap:.6rem;margin-top:1.4rem;padding:1rem 2rem;border-radius:999px;background:#fbd38d;color:#123847;text-decoration:none;font:700 1.15rem/1.2 Arial,Helvetica,sans-serif;box-shadow:0 8px 24px rgba(0,0,0,.3);position:relative;z-index:5}
.mg-hero-start:hover{background:#ffe2a8}
/* Brighter hero: full-color video, shading only behind the words */
body.meridian-home-cinema .home-hero-v3 .home-cover-video,body.meridian-home-cinema .home-hero-v3 .home-cover-fallback,body.meridian-home-cinema .home-cinematic-stage .home-cover-video{filter:saturate(1.08) contrast(1.03)!important}
body.meridian-home-cinema .home-hero-v3 .home-cover-scene:before,.home-hero-v3 .home-cover-scene:before{background:linear-gradient(90deg,rgba(5,27,40,.72) 0%,rgba(5,27,40,.42) 38%,rgba(5,27,40,0) 70%)!important}
body.meridian-home-cinema .home-hero-v3 .home-cover-scene:after{background:none!important}
@media (max-width:760px){body.meridian-home-cinema .home-hero-v3 .home-cover-scene:before,.home-hero-v3 .home-cover-scene:before{background:linear-gradient(180deg,rgba(5,27,40,.15) 0%,rgba(5,27,40,.62) 45%,rgba(5,27,40,.25) 100%)!important}}
.home-hero-v3 .home-welcome-copy h1,.home-hero-v3 .home-hero-lede{text-shadow:0 2px 14px rgba(0,0,0,.45)}
/* Four stops, in order: hero, income map, the Collective with places inside it, chat rooms */
main.magazine-home{display:flex!important;flex-direction:column}
main.magazine-home>*{order:50;min-width:0;max-width:100%}
main.magazine-home>.home-hero-v3{order:1}
main.magazine-home>#income-check{order:2}
main.magazine-home>.home-immersive-switcher{order:3;margin-bottom:0!important}
main.magazine-home>.collective-home-teaser{display:none!important}
main.magazine-home>.home-destinations{order:4;margin-top:0!important;padding-top:2.5rem!important;background:#123847;color:#fff}
main.magazine-home>.home-destinations h2,main.magazine-home>.home-destinations h3,main.magazine-home>.home-destinations h3 a,main.magazine-home>.home-destinations .living-edition-heading p,main.magazine-home>.home-destinations .living-feature-copy p,main.magazine-home>.home-destinations .textlink{color:#fff!important}
main.magazine-home>.home-destinations .home-button-outline{color:#fff!important;border-color:#fff!important}
main.magazine-home>.home-conversations{order:5}
main.magazine-home>.home-collective-marquee,main.magazine-home>.home-editor-letter,main.magazine-home>.collective-home-threads,main.magazine-home>.home-journal,main.magazine-home>.home-planning,main.magazine-home>.home-sponsor{display:none!important}

/* ===== Articles read like a magazine ===== */
/* Top share panel becomes one quiet line under the byline */
.article-byline+.article-share{border:0!important;margin:.4rem 0 1.4rem!important;padding:0!important;display:flex;flex-wrap:wrap;align-items:center;gap:.5rem .9rem}
.article-byline+.article-share>strong{display:inline!important;margin:0!important;font:700 .95rem Arial,sans-serif!important}
.article-byline+.article-share .article-share-buttons{gap:.5rem!important}
.article-byline+.article-share .article-share-buttons>*{min-height:36px!important;padding:6px 12px!important;font-size:.9rem!important;border-radius:999px!important}
.article-byline+.article-share .share-page-help,.article-byline+.article-share .share-status:empty{display:none!important}
.article-contents{display:none!important}
.article-byline+.article-share .article-share-buttons{display:flex!important;flex-direction:row!important}
.article-byline+.article-share .article-share-buttons>*{width:auto!important;flex:0 0 auto!important;max-width:none!important}

/* ===== One-screen homepage: video hero + income slider and map, then three doors ===== */
main.magazine-home>.home-immersive-switcher,main.magazine-home>.home-destinations,main.magazine-home>.home-conversations{display:none!important}
.mg-hero-start{display:none!important}
.home-hero-v3{min-height:0!important;height:auto!important}
.home-hero-v3 .home-welcome-copy{padding-top:2.2rem!important;padding-bottom:2rem!important}
.home-hero-v3 .home-hero-lede{max-width:34ch}
@media (max-width:760px){
 .home-hero-v3 .home-welcome-copy{padding-top:1.6rem!important;padding-bottom:1.4rem!important}
 .home-hero-v3 .home-welcome-copy h1{font-size:clamp(2.6rem,13vw,3.6rem)!important;line-height:.98!important;margin:.3rem 0 .6rem!important}
 .home-hero-v3 .home-kicker{display:none!important}
 .home-hero-v3 .home-hero-lede{font-size:1.02rem!important;margin:0!important}
}
main.magazine-home>#income-check{order:2}
main.magazine-home>#mg-doors{order:3}
.mg-doors{padding:2.5rem 1rem 3rem;background:#123847}
.mg-doors h2{max-width:1100px;margin:0 auto 1.2rem;color:#fff;font-size:clamp(1.6rem,6vw,2.3rem)}
.mg-doors-grid{max-width:1100px;margin:0 auto;display:grid;grid-template-columns:repeat(3,1fr);gap:1.2rem}
.mg-door{display:block;text-decoration:none;color:#123847}
.mg-door .mg-polaroid{transform:rotate(-2.5deg)}
.mg-door:nth-child(2) .mg-polaroid{transform:rotate(2deg)}
.mg-door:nth-child(3) .mg-polaroid{transform:rotate(-1deg)}
.mg-door .mg-polaroid figcaption{font:700 1.2rem Georgia,serif;font-style:normal}
.mg-door span{display:block;margin-top:.9rem;text-align:center;color:#e6eef0;font:1rem/1.4 Arial,sans-serif}
.mg-door:hover .mg-polaroid{transform:rotate(0) scale(1.02)}
@media (max-width:640px){.mg-doors-grid{grid-template-columns:1fr 1fr}.mg-door:nth-child(3){grid-column:1/-1;max-width:60%;margin:0 auto}}

/* ===== Articles: the photo opens the story ===== */
header.guidebook-story-heading{display:flex!important;flex-direction:column!important}
header.guidebook-story-heading>a.textlink{order:1}
header.guidebook-story-heading>figure{order:2;margin:.8rem 0 1.4rem!important}
header.guidebook-story-heading>.eyebrow{order:3}
header.guidebook-story-heading>h1{order:4}
header.guidebook-story-heading>.lead{order:5}
header.guidebook-story-heading>.article-byline{order:6}
header.guidebook-story-heading>.article-share{order:7}

html body main .home-hero-v3.home-cinematic-stage,html body main .home-hero-v3{min-height:0!important;height:auto!important}
html body main .home-hero-v3 .home-welcome-copy{min-height:0!important;height:auto!important;padding-bottom:2rem!important}
@media (max-width:760px){html body main .home-hero-v3 .home-welcome-copy{padding-top:3.2rem!important;padding-bottom:1.6rem!important}}
.home-collective-float{display:none!important}
html body.meridian-home-cinema main .home-hero-v3.home-hero-v3.home-cinematic-stage{min-height:0!important;height:auto!important}
html body.meridian-home-cinema main .home-hero-v3.home-hero-v3.home-cinematic-stage .home-welcome-copy{min-height:0!important;height:auto!important;padding:2.4rem 5vw 2.2rem!important;justify-content:flex-start!important}
@media (max-width:760px){html body.meridian-home-cinema main .home-hero-v3.home-hero-v3.home-cinematic-stage .home-welcome-copy{padding:2.2rem 20px 1.8rem!important}}

/* ===== Homepage tool ===== */
html:not(.mg-map) main.magazine-home>#income-check{display:none!important}
html.mg-map .mg-tool{display:none!important}
html body.meridian-home-cinema main .home-hero-v3.home-hero-v3.home-cinematic-stage{min-height:calc(100svh - 110px)!important}
html body.meridian-home-cinema main .home-hero-v3.home-hero-v3.home-cinematic-stage .home-welcome-copy{justify-content:center!important}
html:not(.mg-map) .home-hero-v3 .home-hero-lede{display:none!important}
.mg-tool{width:min(460px,100%);margin-top:1.1rem;padding:1.1rem 1.1rem 1.2rem;border-radius:18px;background:rgba(255,250,240,.96);box-shadow:0 18px 50px rgba(0,0,0,.35);display:grid;gap:.85rem;color:#123847}
.mg-tool fieldset{border:0;margin:0;padding:0}
.mg-tool legend,.mg-tool .mg-region,.mg-tool .mg-income>label{font:700 .98rem/1.2 Arial,Helvetica,sans-serif;color:#123847;margin-bottom:.45rem;display:block}
.mg-plan div{display:grid;grid-template-columns:1fr 1fr;gap:.45rem}
.mg-plan label{position:relative}
.mg-plan input{position:absolute;opacity:0;inset:0}
.mg-plan span{display:flex;align-items:center;justify-content:center;min-height:46px;padding:.4rem;border:2px solid #9fb0b5;border-radius:12px;background:#fff;font:700 .98rem/1.15 Arial,sans-serif;text-align:center;cursor:pointer}
.mg-plan input:checked+span{background:#123847;border-color:#123847;color:#fff}
.mg-plan input:focus-visible+span{outline:3px solid #254ba1;outline-offset:2px}
.mg-region select{display:block;width:100%;margin-top:.45rem;min-height:48px;padding:0 .8rem;border:2px solid #9fb0b5;border-radius:12px;background:#fff;font:1.02rem Arial,sans-serif;color:#123847}
.mg-income output{display:block;font:700 2rem/1 Georgia,serif;color:#123847;margin:.1rem 0 .55rem}
.mg-range-row{display:grid;grid-template-columns:44px 1fr 44px;gap:.6rem;align-items:center}
.mg-range-row button{height:44px;border-radius:50%;border:2px solid #123847;background:#fff;color:#123847;font:700 1.4rem/1 Arial,sans-serif;cursor:pointer}
.mg-tool input[type=range]{-webkit-appearance:none;appearance:none;width:100%;height:12px;border-radius:999px;background:linear-gradient(90deg,#147768 var(--fill,15%),#d5dcd6 var(--fill,15%));outline-offset:6px}
.mg-tool input[type=range]::-webkit-slider-thumb{-webkit-appearance:none;width:32px;height:32px;border-radius:50%;background:#fbd38d;border:3px solid #123847;box-shadow:0 2px 8px rgba(0,0,0,.25);cursor:grab}
.mg-tool input[type=range]::-moz-range-thumb{width:28px;height:28px;border-radius:50%;background:#fbd38d;border:3px solid #123847;cursor:grab}
.mg-range-scale{display:flex;justify-content:space-between;font:.85rem Arial,sans-serif;color:#4a5d64;margin-top:.35rem}
.mg-go{width:100%;min-height:56px;font-size:1.15rem!important;border-radius:999px}
@media (max-width:760px){
 html body.meridian-home-cinema main .home-hero-v3.home-hero-v3.home-cinematic-stage .home-welcome-copy{padding:1.2rem 16px 1.4rem!important}
 html:not(.mg-map) .home-hero-v3 .home-welcome-copy h1{font-size:clamp(2.3rem,11.5vw,3rem)!important;margin:0!important}
 .mg-tool{padding:.95rem .9rem 1rem;gap:.7rem;margin-top:.8rem}
}
.mg-range-row button{border-radius:50%!important;padding:0!important;width:44px!important;min-height:0!important}
/* Article endings: chat room, share, read next. Sources stay behind one tap. */
.article-next-steps,.guidebook-story-rail{display:none!important}
.guidebook-story-layout{grid-template-columns:minmax(0,1fr)!important}
.article-share .share-page-help{display:none!important}
