/* Fixed masthead geometry: content cannot change the image boundary. */
body.mm-interior{--mm-header-offset:0px;--mm-page-gutter:clamp(24px,5vw,84px);--mm-masthead-height:560px;--mm-copy-top:180px;--mm-title-row:96px}
body.mm-interior.admin-bar{--mm-header-offset:32px}
body.mm-interior .ml-site-header{position:absolute;inset:var(--mm-header-offset) 0 auto;height:102px;background:transparent;color:#fff;border:0;box-shadow:none;backdrop-filter:none;z-index:20}
body.mm-interior .ml-site-header a,body.mm-interior .ml-site-header button,body.mm-interior .ml-languages{color:#fff;text-shadow:0 1px 12px #000,0 1px 3px #0008}
body.mm-interior .ml-languages{border-left-color:#ffffff55}
body.mm-interior .ml-page,body.mm-interior .ml-page:has(.mm-editorial){width:100%;max-width:none;padding:0 0 100px;box-sizing:border-box}
body.mm-interior .ml-page>.ml-page-header{max-width:none;margin:0 0 56px;padding:0;border:0}
body.mm-interior .ml-page-body{max-width:860px;margin-inline:auto;padding-inline:var(--mm-page-gutter);box-sizing:content-box}
body.mm-interior .mm-masthead{position:relative;isolation:isolate;overflow:clip;display:block;width:100%;height:var(--mm-masthead-height);min-height:0;max-height:none;padding:0;margin:0;box-sizing:border-box;background:#080e12;color:#fff}
body.mm-interior .mm-masthead *{box-sizing:border-box}
body.mm-interior .mm-masthead-copy{position:absolute;z-index:2;top:var(--mm-copy-top);left:0;right:0;max-width:1380px;padding:0 var(--mm-page-gutter);margin:0 auto;display:grid;grid-template-rows:16px var(--mm-title-row) auto auto;row-gap:20px;align-items:start}
body.mm-interior .mm-masthead-kicker{font:600 10px/16px Arial,sans-serif;letter-spacing:.19em;color:#d1dce0;margin:0;text-transform:uppercase}
body.mm-interior .mm-masthead h1{font:400 clamp(42px,4.4vw,60px)/1.25 Georgia,"Yu Mincho",serif;letter-spacing:-.02em;color:#fff;max-width:1100px;margin:0;text-wrap:balance;text-shadow:0 2px 22px #0006;overflow-wrap:break-word}
body.mm-interior .mm-masthead-lead{font-size:18px;line-height:1.7;max-width:650px;color:#e8edf0;margin:0;text-shadow:0 1px 12px #0008}
body.mm-interior .mm-masthead-action{justify-self:start;display:inline-flex;align-items:center;gap:28px;font-size:12px;line-height:1.7;color:#fff;text-decoration:none;border-bottom:1px solid #ffffff80;padding-bottom:8px}
body.mm-interior .mm-masthead-action span{font-size:18px}
body.mm-interior .mm-masthead-action:hover{border-color:#fff}
body.mm-interior .mm-masthead-action:focus-visible{outline:2px solid #fff;outline-offset:6px}
body.mm-interior .mm-masthead-scene{position:absolute;inset:0;margin:0!important;z-index:0}
body.mm-interior .mm-masthead-scene img{position:absolute;inset:0;display:block;width:100%;max-width:none;height:100%;object-fit:cover;object-position:var(--mm-scene-position,55% 50%)}
body.mm-interior .mm-masthead-scene img[src$="hayn-native.jpg"]{transform:scale(1.55)}
body.mm-interior .ml-page-body a{overflow-wrap:anywhere}
body.mm-interior .ml-page-body .wp-block-table{max-width:100%;overflow-x:auto}
body.mm-interior .mm-masthead-scene:after{content:"";position:absolute;inset:0;background:linear-gradient(90deg,#02080dbd 0%,#02080d55 42%,#02080d08 80%),linear-gradient(0deg,#02080da8 0%,transparent 27%,transparent 65%,#02080d80 100%)}
body.mm-interior .mm-masthead-scene figcaption{position:absolute;z-index:1;right:var(--mm-page-gutter);bottom:26px;max-width:70%;color:#fff;font:10px/1.7 Arial,sans-serif;text-align:right;text-shadow:0 1px 4px #000}
body.mm-interior .mm-masthead-scene figcaption a{color:#fff;text-decoration:none}
body.mm-interior .mm-masthead-scene figcaption a:hover{text-decoration:underline}
/* Shortcode pages retain their wider body layout below the common masthead. */
body.mm-interior .ml-page:has(.mm-editorial)>.ml-page-header{display:none}
body.mm-interior .ml-page:has(.mm-editorial) .ml-page-body{max-width:none;padding:0}
body.mm-interior .entry-content:has(.mm-editorial)>*:not(.mm-editorial){width:calc(100% - 2 * var(--mm-page-gutter));max-width:1120px;box-sizing:border-box;margin-inline:auto}
body.mm-interior .entry-content:has(.mm-editorial)>:is(p,ul,h2,h3,.ml-content-card,.mm-profile-links,.mm-join-nav){max-width:860px}
body.mm-interior .entry-content:has(.mm-editorial)>#recent-papers{max-width:1120px}
body.mm-interior .mm-editorial.mm-masthead{margin:0 0 56px!important}
@media(max-width:860px){
 body.mm-interior .mm-masthead-scene img[src$="hayn-native.jpg"]{transform:scale(1.9)}
 body.mm-interior{--mm-masthead-height:520px;--mm-copy-top:158px;--mm-title-row:90px}
 body.mm-interior .ml-site-header{height:84px}
 body.mm-interior .ml-nav{background:#07121bed;backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px);border-block:1px solid #ffffff30}
 body.mm-interior:has(.ml-nav.is-open) :is(.mm-masthead-copy,.mm-masthead-scene figcaption){visibility:hidden}
 body.mm-interior .mm-masthead h1{font-size:38px}
 body.mm-interior .mm-masthead-lead{font-size:16px}
}
@media(max-width:782px){body.mm-interior.admin-bar{--mm-header-offset:46px}}
@media(max-width:650px){
 body.mm-interior .mm-masthead h1{font-size:34px;line-height:1.3;text-wrap:pretty}
 body.mm-interior .mm-masthead-copy{row-gap:18px}
 body.mm-interior .mm-masthead-lead{max-width:340px}
 body.mm-interior .mm-masthead-scene figcaption{max-width:calc(100% - 48px);font-size:9px;bottom:22px}
 body.mm-interior .mm-masthead-scene:after{background:linear-gradient(90deg,#02080db3,#02080d33),linear-gradient(0deg,#02080dc7,transparent 32%,transparent 64%,#02080d80)}
 body.mm-interior .ml-page>.ml-page-header{margin-bottom:40px}
 body.mm-interior .mm-editorial.mm-masthead{margin-bottom:40px!important}
}

/* Restore centred content and a consistent reading rhythm. */
body.mm-interior .entry-content>.mm-training--join{width:min(1120px,calc(100% - 64px));max-width:none;margin-inline:auto!important;padding-inline:0!important}
body:is(.page-id-2108,.page-id-2106) .entry-content p{line-height:1.75;margin-block:12px}
body:is(.page-id-2108,.page-id-2106) .entry-content .wp-block-group p{margin-block:10px}
body:is(.page-id-2108,.page-id-2106) .entry-content h3{margin-top:30px;margin-bottom:14px;line-height:1.45}
body:is(.page-id-2108,.page-id-2106) .entry-content .wp-block-details p{margin-block:12px}
body:is(.page-id-2108,.page-id-2106) .entry-content .wp-block-columns{gap:28px;margin-bottom:22px}
body:is(.page-id-2108,.page-id-2106) .entry-content td{padding:12px 16px;line-height:1.6}
.mm-profile-roles .mm-role{padding-block:13px}.mm-role dd{line-height:1.65}.mm-role small{margin-top:4px}
.mm-tsukimi-highlight{border-block:1px solid #bac5c8;padding-block:32px;margin-block:46px!important}.mm-tsukimi-highlight p{line-height:1.8}
@media(max-width:650px){body.mm-interior .entry-content>.mm-training--join{width:calc(100% - 40px)}body:is(.page-id-2108,.page-id-2106) .entry-content td{padding:10px 12px}}
