/* Codex article presentation: topic-selected palette and compact hero. */
.mg{--mg-ink:#232c45;--mg-ink2:#424e69;--mg-forest:#37456a;--mg-sand:#edf0f6;--mg-paper:#f8f9fc;--mg-line:#cad1df;--mg-copper:#425d91;--mg-dark:#263453;--mg-band:#e0e6f1}
.mg-hero,.mg-band-photo,.mg-closing,.mg-dark,.mg-footer{background:var(--mg-dark)}
.mg-band{background:var(--mg-band)}
.mg-hero::after{background:linear-gradient(0deg,rgba(24,35,62,.87) 0%,rgba(24,35,62,.55) 42%,transparent 83%)}
.mg-opening-copy p,.mg-copy p{color:var(--mg-ink2)}
.mg-hero h1{font-size:clamp(36px,5.1vw,76px);line-height:1.18;letter-spacing:.01em;max-width:100%;margin-bottom:0;text-shadow:0 3px 14px rgba(0,0,0,.72)}
.mg-hero h1 span{display:block;white-space:nowrap}
.mg-hero-bottom{margin-top:28px}
.mg-hero .mg-credit{font-size:11px;line-height:1.25;color:#d9dde0;background:rgba(15,18,21,.34);padding:2px 4px;left:12px;bottom:8px;max-width:calc(100% - 24px)}
.mg-hero .mg-credit a{color:#d9dde0;position:relative}
.mg-hero .mg-credit a::after{content:"";position:absolute;inset:-10px -6px}
@media(max-width:560px){.mg-hero h1{font-size:clamp(25px,8vw,38px);letter-spacing:0}}

.mg-hero .mg-credit{position:static;display:block;width:fit-content;max-width:100%;margin-top:16px;color:#fff;background:rgba(15,18,21,.82);padding:4px 8px}
.mg-hero .mg-credit,.mg-photo-credit{font-size:11px;line-height:1.45;overflow-wrap:anywhere}
.mg-photo-credit a,.mg-hero .mg-credit a{font-size:inherit}
.mg-photo-credit a{position:relative;text-decoration:underline}
.mg-photo-credit a::after{content:"";position:absolute;inset:-5px 0}
.mg-hero .mg-credit a{color:inherit}
.mg-photo-credit a:focus-visible{outline:2px solid currentColor;outline-offset:2px}
.mg-hero .mg-credit a:focus-visible{outline:2px solid #fff;outline-offset:2px}
.mg-guide-top{display:block}
.mg-guide-intro{max-width:72ch;margin-top:14px}
.mg-guide-list>#t-budget{margin-top:28px}
.mg-hero h1{font-size:clamp(24px,7.5vw,38px)}
@media(min-width:561px){.mg-hero h1{font-size:clamp(36px,5.1vw,76px)}}
@media(min-width:621px) and (max-width:1000px){
  .mg-guide-item>summary{grid-template-columns:54px minmax(0,1fr) 24px}
  .mg-guide-item .mg-gcost{grid-column:2;white-space:normal;overflow-wrap:anywhere}
  .mg-guide-item .mg-plus{grid-column:3;grid-row:1/span 2}
}
