/* Myth Atlas brand masthead contract v1. Canonical reference: public home header at 390px, height ~98px, #382b24. */
:root{--myth-global-dark:#382b24;--myth-global-cream:#f6e8cb;--myth-global-parchment:#d8ccb0;--myth-global-paper:#f0e5cd;--myth-global-ink:#35271c;--myth-global-brown:#60402c;--myth-global-border:#b5a07f}
body[data-myth-unified="1"]{background-color:var(--myth-global-parchment)!important;color:var(--myth-global-ink)}
body[data-myth-unified="1"] > header:not(#myth-global-header):not(.hero),
body[data-myth-unified="1"] > .sitebrand,
body[data-myth-unified="1"] > nav.about-language{display:none!important}
body[data-myth-unified="1"][data-myth-section="reading-companions"] > main > nav.lang,
body[data-myth-unified="1"][data-myth-section="myth-culture"] > main > nav.lang{display:none!important}
body[data-myth-unified="1"] #myth-global-header{box-sizing:border-box!important;position:relative!important;display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:flex-start!important;gap:0!important;width:100%!important;max-width:none!important;min-height:98px!important;height:98px!important;margin:0!important;padding:10px 10px 14px!important;border:0!important;border-bottom:1px solid #9e8060!important;border-radius:0!important;background:linear-gradient(95deg,rgb(33,26,24),rgb(75,52,42) 58%,rgb(33,26,24))!important;background-image:linear-gradient(95deg,rgb(33,26,24),rgb(75,52,42) 58%,rgb(33,26,24))!important;box-shadow:none!important;color:#f6e8cb!important;text-align:center!important;z-index:1010!important;font-family:Georgia,"Yu Mincho",serif!important;overflow:visible!important}
body[data-myth-unified="1"] #myth-global-header *{box-sizing:border-box}
#myth-global-header .myth-global-brand{display:block!important;margin:0!important;padding:0!important;color:#f6e8cb!important;font-family:Georgia,"Yu Mincho",serif!important;font-weight:700!important;font-size:26px!important;line-height:1.15!important;letter-spacing:0!important;text-align:center!important;text-decoration:none!important;white-space:nowrap!important;max-width:100%!important;overflow:hidden!important;text-overflow:ellipsis!important}
#myth-global-header .myth-global-actions{display:flex!important;align-items:center!important;justify-content:center!important;gap:8px!important;margin:7px 0 0!important;padding:0!important;position:static!important}
#myth-global-header .myth-global-menu-wrap{position:relative!important;margin:0!important;padding:0!important}
#myth-global-header .myth-global-translate,#myth-global-header .myth-global-contact{appearance:none!important;display:block!important;width:auto!important;min-width:0!important;height:38px!important;min-height:38px!important;margin:0!important;padding:6px 10px!important;border:1px solid #ad8c66!important;border-radius:7px!important;background:#ebdbba!important;background-image:none!important;box-shadow:none!important;color:#38291d!important;font:700 15px/24px system-ui,Arial,sans-serif!important;white-space:nowrap!important;text-align:center!important;text-decoration:none!important;cursor:pointer!important;transform:none!important;opacity:1!important}
#myth-global-header .myth-global-options{position:absolute!important;top:calc(100% + 2px)!important;right:0!important;left:auto!important;display:block!important;min-width:144px!important;width:max-content!important;max-width:240px!important;padding:5px!important;border:1px solid #a48a67!important;border-radius:7px!important;background:#f1e1c3!important;background-image:none!important;box-shadow:0 6px 14px #30201136!important;z-index:1040!important;text-align:left!important;overflow:visible!important}
#myth-global-header .myth-global-options[hidden]{display:none!important}
#myth-global-header .myth-global-options a{display:block!important;margin:0!important;padding:7px 9px!important;border:0!important;border-radius:4px!important;background:transparent!important;color:#342518!important;font:500 15px/1.4 system-ui,Arial,sans-serif!important;text-decoration:none!important;white-space:nowrap!important}
#myth-global-header .myth-global-options a[aria-current="page"]{background:#725237!important;color:white!important;font-weight:700!important}
#myth-global-header a:focus-visible,#myth-global-header button:focus-visible{outline:3px solid #f1c87d!important;outline-offset:2px!important}
@media(min-width:801px){body[data-myth-unified="1"] #myth-global-header{min-height:98px!important;height:98px!important}}
@media(max-width:390px){#myth-global-header .myth-global-brand{font-size:clamp(22px,7vw,26px)!important}}
/* Section-wide surfaces share the site's paper color without changing article layouts. */
body[data-myth-unified="1"][data-myth-section="reading-companions"] main,
body[data-myth-unified="1"][data-myth-section="myth-culture"] main,
body[data-myth-unified="1"][data-myth-section="classroom"] main{color:#35271c}
body[data-myth-unified="1"][data-myth-section="classroom"]{background:#d8ccb0!important}

body[data-myth-unified][data-myth-section=story] main a[href^=http]{overflow-wrap:anywhere;word-break:break-word}

/* Story-specific language tabs are replaced by the common header dropdown. */
body[data-myth-unified][data-myth-section=story] main > .lang{display:none!important}

/* Exact canonical homepage parchment radial backdrop, not a new palette. */
body[data-myth-unified="1"]{background:radial-gradient(at 55% 28%,rgb(246,235,213) 0%,rgb(231,212,179) 58%,rgb(188,158,119) 100%)!important}
body[data-myth-unified="1"][data-myth-section="classroom"]{background:radial-gradient(at 55% 28%,rgb(246,235,213) 0%,rgb(231,212,179) 58%,rgb(188,158,119) 100%)!important}
