/* MTWM 1.7: The Open Page editorial reading system — full blog and learning integration.
   Readable typography, consistent semantic headings, almost no card ornamentation.
   Applies only in the child theme and never modifies stored posts. */
body.mtwm-editorial-view .mtwm-shell .mtwm-journal{max-width:1170px;width:100%;margin:0 auto;padding-bottom:clamp(40px,5vw,95px);color:var(--ink);font:400 1rem/1.62 var(--sans);}
body.mtwm-editorial-view .mtwm-shell .mtwm-journal__heading{padding:0 0 clamp(24px,4vw,54px);border-bottom:1px solid var(--line);}
body.mtwm-editorial-view .mtwm-shell .mtwm-journal__eyebrow,body.mtwm-editorial-view .mtwm-shell .mtwm-journal__entry-meta{font:600 .79rem/1.5 var(--sans)!important;letter-spacing:.045em;text-transform:uppercase;color:var(--muted)!important;margin:0 0 12px;}
body.mtwm-editorial-view .mtwm-shell .mtwm-journal__heading h2{font:400 clamp(2.4rem,5vw,4.15rem)/1.12 var(--serif)!important;letter-spacing:-.045em!important;color:var(--ink)!important;margin:0 0 18px!important;max-width:970px;}
body.mtwm-editorial-view .mtwm-shell .mtwm-journal__heading em{font-weight:400;}
body.mtwm-editorial-view .mtwm-shell .mtwm-journal__heading>p:last-child{max-width:660px;font-size:1.1rem;line-height:1.65;margin:0;}
body.mtwm-editorial-view .mtwm-shell .mtwm-journal__search{padding:clamp(25px,4vw,44px) 0 24px;max-width:790px;margin:0;background:none!important;box-shadow:none!important;}
body.mtwm-editorial-view .mtwm-shell .mtwm-journal__search label{display:block;font-size:.92rem;font-weight:650;margin:0 0 10px;}
body.mtwm-editorial-view .mtwm-shell .mtwm-journal__search-row{display:flex;gap:8px;flex-wrap:wrap;}
body.mtwm-editorial-view .mtwm-shell .mtwm-journal__search input[type="search"]{flex:1 1 290px;min-width:0;background:#fff!important;border:1px solid #74847a!important;border-radius:4px!important;padding:13px 15px!important;line-height:1.45!important;font:inherit!important;color:var(--ink)!important;min-height:48px;box-shadow:none!important;}
body.mtwm-editorial-view .mtwm-shell .mtwm-journal__search button{background:var(--ink)!important;color:#fff!important;border:1px solid var(--ink)!important;border-radius:4px!important;padding:12px 21px!important;font:600 .97rem var(--sans)!important;min-height:48px;box-shadow:none!important;}
body.mtwm-editorial-view .mtwm-shell .mtwm-journal__topics{display:flex;flex-wrap:wrap;align-items:center;gap:8px;padding:0 0 25px;border-bottom:1px solid var(--line);}
body.mtwm-editorial-view .mtwm-shell .mtwm-journal__topics a{font:.91rem/1.35 var(--sans)!important;display:inline-flex;padding:8px 13px;min-height:40px;align-items:center;border:1px solid var(--line)!important;background:transparent!important;border-radius:3px!important;color:var(--ink)!important;text-decoration:none!important;box-shadow:none!important;}
body.mtwm-editorial-view .mtwm-shell .mtwm-journal__topics a[aria-current="page"]{background:var(--ink)!important;border-color:var(--ink)!important;color:#fff!important;}
body.mtwm-editorial-view .mtwm-shell .mtwm-journal__results{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));column-gap:clamp(25px,4vw,64px);row-gap:0;}
body.mtwm-editorial-view .mtwm-shell .mtwm-journal__entry{border:0!important;border-bottom:1px solid var(--line)!important;box-shadow:none!important;border-radius:0!important;background:transparent!important;padding:clamp(25px,3vw,38px) 0!important;margin:0!important;display:grid;grid-template-columns:minmax(0,1fr);gap:0;min-width:0;}
body.mtwm-editorial-view .mtwm-shell .mtwm-journal__media{display:block;overflow:hidden;margin-bottom:19px;aspect-ratio:16/10;text-decoration:none!important;}
body.mtwm-editorial-view .mtwm-shell .mtwm-journal__media img{width:100%;height:100%;object-fit:cover;display:block;max-width:none;}
body.mtwm-editorial-view .mtwm-shell .mtwm-journal__entry h3{font:400 clamp(1.45rem,2.2vw,2rem)/1.24 var(--serif)!important;letter-spacing:-.023em!important;margin:0 0 13px!important;color:var(--ink)!important;}
body.mtwm-editorial-view .mtwm-shell .mtwm-journal__entry h3 a{color:inherit!important;text-decoration:none!important;}
body.mtwm-editorial-view .mtwm-shell .mtwm-journal__entry h3 a:hover{text-decoration:underline!important;text-decoration-thickness:1px!important;text-underline-offset:.16em;}
body.mtwm-editorial-view .mtwm-shell .mtwm-journal__excerpt{font:400 1rem/1.65 var(--sans)!important;margin:0 0 14px!important;color:var(--muted)!important;max-width:57ch;}
body.mtwm-editorial-view .mtwm-shell .mtwm-journal__read{font:650 .92rem var(--sans)!important;text-decoration:none!important;color:var(--ink)!important;display:inline-flex;gap:10px;min-height:36px;align-items:center;}
body.mtwm-editorial-view .mtwm-shell .mtwm-journal__read:hover{text-decoration:underline!important;text-underline-offset:4px!important;}
body.mtwm-editorial-view .mtwm-shell .mtwm-journal__pagination{display:flex;flex-wrap:wrap;gap:8px;margin:32px 0;}
body.mtwm-editorial-view .mtwm-shell .mtwm-journal__pagination :is(a,span){border:1px solid var(--line);padding:8px 12px;min-width:42px;text-align:center;text-decoration:none!important;color:var(--ink)!important;background:transparent;}
body.mtwm-editorial-view .mtwm-shell .mtwm-journal__pagination span.current{background:var(--ink);color:white!important;border-color:var(--ink);}
body.mtwm-editorial-view .mtwm-shell .mtwm-journal__empty{margin:30px 0;}
/* Individual article: headline is restrained and sits over a narrower long-form column. */
body.mtwm-editorial-view .mtwm-shell .mtwm-story{max-width:1030px;margin:0 auto;}
body.mtwm-editorial-view .mtwm-shell .mtwm-story .content-heading{font:400 clamp(2.25rem,4vw,3.85rem)/1.13 var(--serif)!important;letter-spacing:-.044em!important;max-width:990px;margin:12px 0 20px!important;overflow-wrap:normal;word-break:normal;hyphens:auto;color:var(--ink)!important;text-wrap:pretty;}
body.mtwm-editorial-view .mtwm-shell .mtwm-story__breadcrumbs{font-size:.85rem;display:flex;gap:10px;margin:0 0 25px;color:var(--muted)!important;}
body.mtwm-editorial-view .mtwm-shell .mtwm-story__breadcrumbs a{text-decoration:none!important;color:var(--ink)!important;}
body.mtwm-editorial-view .mtwm-shell .mtwm-story .smalllabel{font-size:.8rem;letter-spacing:.035em;}
body.mtwm-editorial-view .mtwm-shell .mtwm-story .content-deck{font-size:clamp(1.05rem,1.5vw,1.25rem)!important;line-height:1.62;max-width:755px;}
body.mtwm-editorial-view .mtwm-shell .mtwm-story .reading-meta{font-size:.89rem!important;line-height:1.55;color:var(--muted)!important;border-bottom:1px solid var(--line);padding-bottom:19px;margin:12px 0 29px!important;max-width:800px;}
body.mtwm-editorial-view .mtwm-shell .mtwm-story .mtwm-hero-post-photo{width:100%;max-width:950px;height:auto;max-height:540px;object-fit:cover;display:block;margin:0 0 40px!important;border-radius:2px!important;}
body.mtwm-editorial-view .mtwm-shell .mtwm-story .mtwm-editorial-prose{max-width:755px!important;width:100%;margin:0 auto 50px!important;font:400 1.06rem/1.77 var(--sans)!important;color:var(--ink)!important;overflow-wrap:break-word;min-width:0;}
body.mtwm-editorial-view .mtwm-shell .mtwm-editorial-prose :is(p,li,blockquote){font-family:var(--sans)!important;font-size:1em!important;line-height:1.76!important;color:var(--ink)!important;letter-spacing:normal!important;text-decoration:none!important;}
body.mtwm-editorial-view .mtwm-shell .mtwm-editorial-prose p{margin:0 0 1.4em!important;max-width:72ch;}
body.mtwm-editorial-view .mtwm-shell .mtwm-editorial-prose :is(h1,h2){font:400 clamp(1.7rem,3vw,2.3rem)/1.22 var(--serif)!important;letter-spacing:-.02em!important;color:var(--ink)!important;margin:1.65em 0 .55em!important;}
body.mtwm-editorial-view .mtwm-shell .mtwm-editorial-prose :is(h3,h4){font:600 clamp(1.1rem,1.7vw,1.35rem)/1.37 var(--sans)!important;color:var(--ink)!important;margin:1.4em 0 .5em!important;}
body.mtwm-editorial-view .mtwm-shell .mtwm-editorial-prose :is(a:not([class]),.wp-block-paragraph a){color:var(--ink)!important;text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:.17em;}
body.mtwm-editorial-view .mtwm-shell .mtwm-editorial-prose :is(a[class*="btn"],a[class*="button"],.wp-block-button__link){color:white!important;text-decoration:none!important;border-radius:3px!important;}
body.mtwm-editorial-view .mtwm-shell .mtwm-editorial-prose :is(img,video,iframe){max-width:100%!important;}
body.mtwm-editorial-view .mtwm-shell .mtwm-editorial-prose :is(figure,.wp-block-image){width:auto;max-width:100%!important;margin:1.4em 0 2em!important;}
body.mtwm-editorial-view .mtwm-shell .mtwm-editorial-prose figure img{width:auto;max-width:100%;height:auto!important;object-fit:contain!important;}
body.mtwm-editorial-view .mtwm-shell .mtwm-editorial-prose> :is(img,a>img),body.mtwm-editorial-view .mtwm-shell .mtwm-editorial-prose>p>img{width:auto;max-width:100%;height:auto!important;max-height:620px;object-fit:contain!important;}
/* Legacy author/publisher strips: remove the competing gradient/card aesthetic. */
body.mtwm-editorial-view .mtwm-shell .mtwm-editorial-prose :is([class*="author"],[class*="byline"],[class*="post-meta"],[class*="readtime"],[class*="read-time"],[class*="authorInfo"],[class*="author-info"]){font-family:var(--sans)!important;color:var(--muted)!important;background:transparent!important;background-image:none!important;border:0!important;border-radius:0!important;box-shadow:none!important;text-shadow:none!important;max-width:100%!important;}
body.mtwm-editorial-view .mtwm-shell .mtwm-editorial-prose :is([class*="author"],[class*="byline"],[class*="post-meta"]):not(a){padding:0!important;margin:12px 0 20px!important;}
body.mtwm-editorial-view .mtwm-shell .mtwm-editorial-prose :is([class*="author"],[class*="byline"]) img{max-width:46px!important;max-height:46px!important;border-radius:50%!important;}
body.mtwm-editorial-view .mtwm-shell .mtwm-editorial-prose :is(div,section,aside)[style*="linear-gradient"]{background:transparent!important;box-shadow:none!important;border-radius:0!important;}
body.mtwm-editorial-view .mtwm-shell .mtwm-editorial-prose :is(div,section,aside)[style*="border-radius"]{border-radius:3px!important;box-shadow:none!important;}
body.mtwm-editorial-view .mtwm-shell .mtwm-editorial-prose :is(.wp-block-group,.wp-block-columns){max-width:100%;min-width:0;}
body.mtwm-editorial-view .mtwm-shell .mtwm-editorial-prose .mtw-singleShareWrap{border-top:1px solid var(--line)!important;border-bottom:1px solid var(--line)!important;box-shadow:none!important;padding:20px 0!important;margin:32px 0!important;}
/* Learning hub has its OWN inline CSS; these explicit selectors take precedence without destroying search/filter JS. */
body.mtwm-editorial-view .mtwm-shell .mtwm-ndhub-wrap{font:400 1rem/1.65 var(--sans)!important;color:var(--ink)!important;max-width:1240px!important;width:100%!important;margin:auto!important;padding:0!important;}
body.mtwm-editorial-view .mtwm-shell .mtwm-ndhub-wrap :is(.ndh-h1){font:400 clamp(2.3rem,4.5vw,3.9rem)/1.12 var(--serif)!important;letter-spacing:-.045em!important;color:var(--ink)!important;}
body.mtwm-editorial-view .mtwm-shell .mtwm-ndhub-wrap :is(.ndh-h2){font:400 clamp(1.6rem,2.75vw,2.5rem)/1.22 var(--serif)!important;letter-spacing:-.02em!important;color:var(--ink)!important;}
body.mtwm-editorial-view .mtwm-shell .mtwm-ndhub-wrap .ndh-library{padding:clamp(20px,4vw,45px) 0!important;margin:0!important;}
body.mtwm-editorial-view .mtwm-shell .mtwm-ndhub-wrap .ndh-sectionhead{display:flex;align-items:baseline;justify-content:space-between;gap:18px;flex-wrap:wrap;border-bottom:1px solid var(--line);margin-bottom:12px;padding-bottom:20px;}
body.mtwm-editorial-view .mtwm-shell .mtwm-ndhub-wrap .ndh-sectionhead .ndh-sub{color:var(--muted)!important;font:400 1rem/1.6 var(--sans)!important;max-width:50ch;}
body.mtwm-editorial-view .mtwm-shell .mtwm-ndhub-wrap .ndh-grid{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:0 clamp(20px,3vw,45px)!important;}
body.mtwm-editorial-view .mtwm-shell .mtwm-ndhub-wrap .ndh-tile{display:grid!important;grid-template-columns:112px minmax(0,1fr)!important;gap:20px!important;padding:28px 0!important;min-width:0;background:transparent!important;border:0!important;border-bottom:1px solid var(--line)!important;border-radius:0!important;box-shadow:none!important;text-decoration:none!important;color:var(--ink)!important;align-items:start!important;}
body.mtwm-editorial-view .mtwm-shell .mtwm-ndhub-wrap .ndh-tile-media{width:112px!important;height:112px!important;border:0!important;border-radius:3px!important;overflow:hidden!important;background:transparent!important;box-shadow:none!important;}
body.mtwm-editorial-view .mtwm-shell .mtwm-ndhub-wrap .ndh-tile-media img{width:100%!important;height:100%!important;object-fit:cover!important;border-radius:3px!important;}
body.mtwm-editorial-view .mtwm-shell .mtwm-ndhub-wrap .ndh-tile:has(.ndh-tile-media img[src^="data:image/svg+xml"]) {grid-template-columns:minmax(0,1fr)!important;}
body.mtwm-editorial-view .mtwm-shell .mtwm-ndhub-wrap .ndh-tile:has(.ndh-tile-media img[src^="data:image/svg+xml"]) .ndh-tile-media{display:none!important;}
body.mtwm-editorial-view .mtwm-shell .mtwm-ndhub-wrap .ndh-tile-kicker{display:flex;align-items:center;gap:8px;font:500 .82rem/1.4 var(--sans)!important;color:var(--muted)!important;margin:0 0 9px!important;}
body.mtwm-editorial-view .mtwm-shell .mtwm-ndhub-wrap .ndh-ico{font-size:1em!important;}
body.mtwm-editorial-view .mtwm-shell .mtwm-ndhub-wrap .ndh-tile-title{font:400 clamp(1.23rem,1.9vw,1.58rem)/1.33 var(--serif)!important;color:var(--ink)!important;letter-spacing:-.015em!important;margin:0 0 8px!important;text-decoration:none!important;}
body.mtwm-editorial-view .mtwm-shell .mtwm-ndhub-wrap .ndh-tile-deck{font:400 .98rem/1.62 var(--sans)!important;color:var(--muted)!important;text-decoration:none!important;margin:0!important;}
body.mtwm-editorial-view .mtwm-shell .mtwm-ndhub-wrap a.ndh-tile :is(.ndh-tile-title,.ndh-tile-deck,.ndh-kicker){text-decoration:none!important;}
body.mtwm-editorial-view .mtwm-shell .mtwm-ndhub-wrap a.ndh-tile:hover .ndh-tile-title{text-decoration:underline!important;text-decoration-thickness:1px!important;text-underline-offset:.17em;}
body.mtwm-editorial-view .mtwm-shell .mtwm-ndhub-wrap :is(.ndh-card,.ndh-feature,.ndh-evidence,.ndh-block,.ndh-railcard){box-shadow:none!important;border:0!important;border-radius:3px!important;}
body.mtwm-editorial-view .mtwm-shell .mtwm-ndhub-wrap :is(.ndh-btn,.ndh-chip){border-radius:3px!important;box-shadow:none!important;}
body.mtwm-editorial-view .mtwm-shell .mtwm-ndhub-wrap :is(.ndh-mini,.ndh-related){text-decoration:none!important;box-shadow:none!important;}
body.mtwm-editorial-view .mtwm-shell .mtwm-ndhub-wrap :is(.ndh-mini-title,.ndh-mini-desc){text-decoration:none!important;}
@media(max-width:850px){body.mtwm-editorial-view .mtwm-shell .mtwm-journal__results,body.mtwm-editorial-view .mtwm-shell .mtwm-ndhub-wrap .ndh-grid{grid-template-columns:minmax(0,1fr)!important;}body.mtwm-editorial-view .mtwm-shell .mtwm-ndhub-wrap .ndh-tile{grid-template-columns:100px minmax(0,1fr)!important;padding:22px 0!important;}body.mtwm-editorial-view .mtwm-shell .mtwm-ndhub-wrap .ndh-tile-media{height:100px!important;width:100px!important;}}
@media(max-width:460px){body.mtwm-editorial-view .mtwm-shell .mtwm-ndhub-wrap .ndh-tile{grid-template-columns:78px minmax(0,1fr)!important;gap:13px!important;padding:20px 0!important;}body.mtwm-editorial-view .mtwm-shell .mtwm-ndhub-wrap .ndh-tile-media{width:78px!important;height:78px!important;}body.mtwm-editorial-view .mtwm-shell .mtwm-journal__heading h2{font-size:2.35rem!important;}body.mtwm-editorial-view .mtwm-shell .mtwm-story .content-heading{font-size:clamp(2.05rem,8.2vw,2.7rem)!important;}body.mtwm-editorial-view .mtwm-shell .mtwm-journal__search-row{flex-direction:column;}body.mtwm-editorial-view .mtwm-shell .mtwm-journal__search-row input{flex-basis:auto!important;min-height:48px;}body.mtwm-editorial-view .mtwm-shell .mtwm-journal__search-row button{width:100%;}}
@media(prefers-reduced-motion:reduce){body.mtwm-editorial-view .mtwm-shell .mtwm-journal *,body.mtwm-editorial-view .mtwm-shell .mtwm-ndhub-wrap *{scroll-behavior:auto!important;transition:none!important;animation:none!important;}}
