/* Learning diary: a warm field-notebook palette within the portfolio frame. */
.wit-diary,.wd-feature{--wd-surface:#eee8df;--wd-soft:#f7f4ee;--wd-accent:#865b38;--wd-border:#b7a38d55;--wd-copy:var(--body-copy)}
:root[data-theme="dark"] :is(.wit-diary,.wd-feature){--wd-surface:#302b25;--wd-soft:#282622;--wd-accent:#d9b48b;--wd-border:#b7a38d40}
.research-index .wd-feature{background:var(--wd-surface);margin-top:26px;--nr-accent:var(--wd-accent)}
.wd-feature-art{align-self:center;background:#fff;border-radius:12px;overflow:hidden;padding:16px;display:block}
.wd-feature-art img{display:block;width:100%;height:auto;transition:transform .35s}
.wd-feature-art:hover img{transform:scale(1.025)}
.wd-download{display:inline-flex;align-items:center;flex-wrap:wrap;gap:8px;font-size:12px;line-height:1.6;padding:10px 0}
.wd-download svg,.wd-copy svg{width:16px;height:16px;flex:none}
.wd-download small{font-size:10px;color:var(--muted);margin-left:2px}
.wit-diary{padding:0 clamp(20px,3.5vw,60px);max-width:var(--study-page-width);margin-inline:auto}
.wd-reader{margin:0;padding:0;max-width:none}
.wd-header{padding-top:26px}
.wd-back{display:inline-flex;align-items:center;gap:8px;font-size:12px;padding:8px 0;border-bottom:1px solid var(--line);margin-bottom:26px}
.wd-back svg{width:16px;height:16px}
.wd-hero{display:grid;grid-template-columns:1.1fr 1fr;gap:clamp(28px,4vw,64px);align-items:center;padding:clamp(26px,4vw,58px);border-radius:20px;background:var(--wd-surface)}
.wd-hero h1{font-size:clamp(48px,6vw,88px);line-height:1.04;letter-spacing:-.055em;margin:22px 0 24px}
.wd-hero h1 span{color:var(--wd-accent)}
.wd-subtitle{font-size:clamp(17px,1.6vw,23px);line-height:1.65;max-width:520px}
.wd-byline{font-size:12px;line-height:1.7;margin-top:22px;color:var(--wd-copy)}
.wd-byline a{color:var(--ink);border-bottom:1px solid var(--wd-border)}
.wd-actions{display:flex;align-items:center;flex-wrap:wrap;gap:14px 22px;margin-top:26px}
.wd-actions .pill{border-radius:999px;border:1px solid var(--line);background:transparent;text-transform:none;font-size:12px;letter-spacing:0;min-height:42px;padding:11px 16px}
.wd-actions .wd-primary{background:var(--ink);color:var(--paper);border-color:transparent}
.wd-actions .pill:hover{background:var(--wd-accent);color:var(--paper)}
.wd-hero-figure{margin:0;min-width:0}
.wd-hero-figure>div{background:white;border-radius:12px;padding:16px;overflow:hidden}
.wd-hero-figure img{width:100%;height:auto;display:block}
.wd-hero-figure figcaption{font-size:10px;line-height:1.75;color:var(--muted);max-width:400px;margin-top:14px}
.wd-facts{display:grid;grid-template-columns:1.25fr 1fr 1.2fr .8fr;gap:24px;padding:28px 2px;border-bottom:1px solid var(--line);margin:0}
.wd-facts dt{font-size:10px;color:var(--muted);margin-bottom:9px}
.wd-facts dd{font-size:13px;line-height:1.7;margin:0}
.wd-introduction{display:grid;grid-template-columns:1fr 1.25fr;gap:clamp(30px,6vw,100px);padding:48px 0;border-bottom:1px solid var(--line)}
.wd-introduction h2{font-size:clamp(28px,2.6vw,40px);line-height:1.25;letter-spacing:-.04em}
.wd-introduction p{font-size:14px;line-height:1.85;color:var(--wd-copy);max-width:660px;margin:0 0 18px}
.wd-related-link{font-size:12px;line-height:1.8;border-bottom:1px solid var(--wd-border);display:inline;padding-bottom:4px}
.wd-related-link svg{width:14px;height:14px;vertical-align:middle;margin-left:5px}
.wd-reading-layout{display:grid;grid-template-columns:220px minmax(0,900px);gap:clamp(35px,6vw,100px);justify-content:space-between;max-width:none;padding:45px 0 0;margin:0}
.wd-sidebar{position:sticky;top:calc(var(--header-height) + 24px);align-self:start;max-height:calc(100dvh - var(--header-height) - 48px);overflow:auto;padding:0 12px 0 0;scrollbar-width:thin}
.wd-sidebar .reader-contents summary{font-size:12px;display:flex;justify-content:space-between;gap:12px;cursor:pointer;padding:0 0 20px;border:0;list-style:none}
.wd-sidebar .reader-contents summary span{color:var(--muted);font-size:10px}
.wd-sidebar .reader-contents nav{display:block;max-height:none;overflow:visible}
.wd-nav-week{padding-bottom:20px}
.wd-nav-week>span{font-size:9px;color:var(--wd-accent);line-height:1.7;display:block;margin-bottom:9px;letter-spacing:.025em;text-transform:uppercase}
.wd-sidebar .wd-nav-week a{display:grid;grid-template-columns:24px minmax(0,1fr);gap:7px;font-size:11px;line-height:1.6;padding:7px 0;color:var(--muted);border:0}
.wd-nav-week a b{font-size:10px;font-weight:400;font-variant-numeric:tabular-nums}
.wd-sidebar .wd-nav-week a:hover,.wd-sidebar .wd-nav-week a[aria-current="true"]{color:var(--wd-accent)}
.wd-sidebar .wd-nav-week a[aria-current="true"] b{font-weight:600}
.wd-sidebar-download{border-top:1px solid var(--line);padding-top:16px;display:flex;align-items:flex-start;flex-direction:column;gap:6px}
.wd-copy{background:transparent;color:var(--muted);border:0;display:inline-flex;gap:8px;align-items:center;padding:8px 0;font-size:11px}
.wd-reading-layout .reader-body{min-width:0}
.wd-entry{margin:0;padding:42px 0 46px;border-bottom:1px solid var(--line);scroll-margin-top:24px}
.wd-entry:first-child{padding-top:0}
.wd-entry-heading{margin-bottom:28px}
.wd-entry .wd-entry-meta{display:flex;align-items:center;justify-content:space-between;gap:20px;font-size:10px;line-height:1.6;color:var(--muted);margin:0 0 18px}
.wd-entry-meta>span{color:var(--wd-accent);border:1px solid var(--wd-border);border-radius:999px;padding:6px 12px;font-size:11px}
.wd-entry h2{font-size:clamp(29px,2.8vw,42px);font-weight:400;line-height:1.25;letter-spacing:-.04em;max-width:820px;margin:0}
.wd-gallery{display:grid;grid-template-columns:var(--gallery-columns,1fr 1fr);gap:22px;margin:30px 0 34px;align-items:start;width:100%;max-width:calc(560px * var(--gallery-ratio-sum,2) + 22px)}
.wd-gallery:has(>.wd-figure:only-child){grid-template-columns:1fr}
.wd-figure{margin:0;min-width:0;width:min(100%,calc(560px * var(--photo-ratio)));max-width:100%}
.wd-figure .image-button{display:block;width:100%;max-width:100%;border-radius:8px;background:transparent;overflow:hidden}
.wd-figure img{display:block;width:100%;height:auto;max-width:100%;aspect-ratio:var(--photo-aspect);object-fit:contain}
.wd-figure.wd-sketch img{padding:0;background:transparent}
.wd-figure figcaption{font-size:10px;line-height:1.75;color:var(--muted);margin-top:10px}
.wd-gallery>.wd-figure:nth-child(3){grid-column:1/-1}
.wd-gallery>.wd-figure:not(:only-child):nth-child(-n+2){width:100%}
.wd-gallery>.wd-figure:not(:only-child):nth-child(-n+2) .image-button{width:100%}
.wd-gallery>.wd-figure:not(:only-child):nth-child(-n+2) img{width:100%;height:auto;max-height:none}
.wd-prose{max-width:760px}
.wd-entry .wd-prose p,.wd-entry .wd-prose li{font-size:15px;line-height:1.95;letter-spacing:0;color:var(--wd-copy);margin:0 0 22px}
.wd-prose ul{padding-left:24px;margin:0 0 24px}
.wd-entry .wd-prose .wd-pull{font-size:clamp(20px,1.7vw,25px);line-height:1.65;letter-spacing:-.025em;color:var(--ink);border-left:2px solid var(--wd-accent);padding-left:22px;margin:30px 0}
.wd-source{display:inline-flex;gap:8px;align-items:center;font-size:11px;color:var(--muted);border-bottom:1px solid var(--line);padding:6px 0;margin-top:6px}
.wd-source svg{width:14px;height:14px}
.wd-end{background:var(--wd-surface);border-radius:16px;padding:32px;margin:36px 0 0}
.wd-end h2{font-size:clamp(26px,2.5vw,38px);letter-spacing:-.04em;line-height:1.3;margin:15px 0}
.wd-end p:not(.eyebrow){font-size:14px;line-height:1.85;color:var(--wd-copy);max-width:600px}
.wd-end .wd-credit{font-size:10px!important;margin-top:26px;padding-top:20px;border-top:1px solid var(--wd-border)}
.wd-return{padding:40px 0}
.wd-return .pill{border-radius:999px;font-size:12px;text-transform:none;letter-spacing:0;gap:9px}
.wd-progress{z-index:45}
.wd-progress span{background:var(--wd-accent)}
@media(min-width:1600px){.wd-entry .wd-prose p,.wd-entry .wd-prose li{font-size:16px}.wd-reading-layout{grid-template-columns:240px minmax(0,1000px)}}
@media(max-width:1000px){.wd-hero{gap:28px;padding:30px}.wd-hero h1{font-size:56px}.wd-desktop-break{display:none}.wd-facts{grid-template-columns:1fr 1fr}.wd-reading-layout{grid-template-columns:180px minmax(0,1fr);gap:30px}.wd-entry h2{font-size:31px}}
@media(max-width:760px){
 .research-index .wd-feature{margin-top:24px}
 .wit-diary{padding:0 20px}
 .wd-header{padding-top:20px}.wd-back{margin-bottom:22px}
 .wd-hero{grid-template-columns:1fr;padding:24px;gap:26px}
 .wd-hero h1{font-size:54px;margin:18px 0 20px}.wd-subtitle{font-size:18px}
 .wd-hero-figure>div{padding:12px}.wd-hero-figure figcaption{font-size:9px}
 .wd-facts{padding:24px 0;gap:22px 18px}.wd-facts dd{font-size:12px}
 .wd-introduction{grid-template-columns:1fr;gap:24px;padding:32px 0}.wd-introduction h2{font-size:29px}.wd-introduction p{font-size:13px}
 .wd-reading-layout{display:block;padding-top:0}.wd-sidebar{position:static;max-height:none;padding:0;overflow:visible}
 .wd-sidebar .reader-contents summary{padding:22px 0;border-bottom:1px solid var(--line)}
 .wd-sidebar .reader-contents summary::after{content:'+';font-size:18px;line-height:16px}
 .wd-sidebar .reader-contents[open] summary::after{content:'−'}
 .wd-sidebar .reader-contents summary span{margin-left:auto}
 .wd-sidebar .reader-contents nav{padding-top:20px;max-height:55vh;overflow:auto}
 .wd-sidebar .wd-nav-week a{font-size:12px;padding:9px 0}.wd-sidebar-download{display:none}
 .wd-entry,.wd-entry:first-child{padding:32px 0 36px}.wd-entry-heading{margin-bottom:24px}
 .wd-entry h2{font-size:29px}.wd-entry .wd-entry-meta{font-size:9px;margin-bottom:16px}
 .wd-gallery{gap:22px;grid-template-columns:1fr;max-width:none;margin:24px 0 28px}.wd-gallery>.wd-figure:nth-child(3){grid-column:auto}
 .wd-gallery>.wd-figure:not(:only-child):nth-child(-n+2){width:min(100%,calc(560px * var(--photo-ratio)))}
 .wd-gallery>.wd-figure:not(:only-child):nth-child(-n+2) .image-button,.wd-gallery>.wd-figure:not(:only-child):nth-child(-n+2) img{width:100%}
 .wd-entry .wd-prose p,.wd-entry .wd-prose li{font-size:14px;line-height:1.95;margin-bottom:20px}
 .wd-entry .wd-prose .wd-pull{font-size:20px;padding-left:18px;margin:26px 0}
 .wd-end{padding:24px;margin-top:30px}.wd-end h2{font-size:28px}.wd-end p:not(.eyebrow){font-size:13px}
 .wd-actions{gap:12px 18px}.wd-actions .pill{font-size:11px}.wd-download{font-size:11px}
}
@media(max-width:420px){.wit-diary{padding:0 16px}.wd-hero{padding:22px}.wd-hero h1{font-size:48px}.wd-entry h2{font-size:27px}.wd-facts{gap:20px 14px}}
@media(prefers-reduced-motion:reduce){.wd-feature-art img{transition:none}}
