/* Banded layout preview: each research area is its own full-width band, with no boxed-in frame. */

/* Sections: full-bleed alternating bands, numbered, with a green accent on the heading. */
body.research-page .detail-section{background:#fff}
body.research-page .detail-section>.wrap{counter-reset:area}
body.research-page section.research-chapter{counter-increment:area;position:relative;border:0;border-radius:0;padding:3.5rem 0;margin:0;z-index:0;overflow:visible!important;background:transparent!important;box-shadow:none}
body.research-page section.research-chapter::before{content:"";position:absolute;z-index:-1;top:0;bottom:0;left:50%;width:100vw;margin-left:-50vw;background:#fff}
body.research-page{overflow-x:clip}
body.research-page section.research-chapter:nth-of-type(even)::before{background:#f3f6f1}
body.research-page section.research-chapter .research-modern-heading h2{padding-top:.9rem;border-top:3px solid #28533b;display:inline-block;min-width:8rem}
body.research-page .research-chapter .research-modern-figure{background:transparent;border:0;padding:0}
body.research-page .detail-section>.wrap>.section-head{border-bottom:0;padding-bottom:1rem}

/* Top tabs: the active area is a solid green pill, the others stay light. */
body.research-page .scale-nav{background:#fff;border-bottom:1px solid #dce4dc;gap:.5rem;padding:.6rem 0}
body.research-page .scale-nav>a,body.research-page .scale-nav.is-compact-section-nav>a{flex:1 1 0!important;justify-content:center;background:#f3f6f1;border:0;border-radius:0;color:#28533b;padding:.6rem 1.1rem;transform:none}
body.research-page .scale-nav>a:hover{background:#e8f1e7}
body.research-page .scale-nav>a[aria-current="location"]{background:#28533b;color:#fff}
body.research-page .scale-nav>a[aria-current="location"] span,body.research-page .scale-nav>a[aria-current="location"] small{color:#fff}
body.research-page .scale-nav>a::after{display:none}

/* Topic sub-tabs: underline style. */

/* Cross-platform block: keep it distinct as a closing band. */
body.research-page .cross-platform-section{border:0;border-top:3px solid #28533b;margin-top:3rem;padding:2rem 0 0;background:transparent}
body.research-page .cross-platform-section .methods-band{background:transparent;border-bottom:0}
body.research-page .platform-grid{overflow:visible}

/* Bullet only the topic; papers listed under a topic align with its text. */
body.research-page .topic-papers>ul>li:not(:first-child) .publication-copy::before{display:none}

/* Same square tab style on every page that has section tabs. */
body:is(.software-page,.standard-page) :is(.software-scale-nav,.standard-section-nav){background:#fff;border-bottom:1px solid #dce4dc;gap:.5rem;padding:.6rem 0}
body:is(.software-page,.standard-page) :is(.software-scale-nav,.standard-section-nav)>a,body:is(.software-page,.standard-page) :is(.software-scale-nav,.standard-section-nav).is-compact-section-nav>a{flex:1 1 0!important;justify-content:center;background:#f3f6f1;border:0;border-radius:0;color:#28533b;padding:.6rem 1.1rem;transform:none}
body:is(.software-page,.standard-page) :is(.software-scale-nav,.standard-section-nav)>a:hover{background:#e8f1e7}
body:is(.software-page,.standard-page) :is(.software-scale-nav,.standard-section-nav)>a[aria-current="location"]{background:#28533b;color:#fff}
body:is(.software-page,.standard-page) :is(.software-scale-nav,.standard-section-nav)>a[aria-current="location"] :is(span,small,strong){color:#fff}
body:is(.software-page,.standard-page) :is(.software-scale-nav,.standard-section-nav)>a::after{display:none}

/* Two columns: area summary and skills on the left, papers on the right. No hidden tabs. */
@media(min-width:1000px){
 body.research-page section#field.research-chapter,body.research-page section.research-chapter{grid-template-columns:22rem minmax(0,1fr)!important}
 body.research-page section.research-chapter{display:grid!important;grid-template-columns:22rem minmax(0,1fr);column-gap:4rem;align-items:start;grid-template-rows:auto 1fr}
 body.research-page section.research-chapter>.research-section-layout{grid-column:1;grid-row:1}
 body.research-page section.research-chapter>.research-tools-tabs{display:contents}
 body.research-page section.research-chapter .research-topics-panel{grid-column:2;grid-row:1/3}
 body.research-page section.research-chapter .research-tools-panel:not(.research-topics-panel){grid-column:1;grid-row:2;display:block!important;margin-top:1.5rem;padding-top:1.25rem;border-top:1px solid #dce4dc}
}
@media(max-width:999px){
 body.research-page section.research-chapter .research-tools-panel:not(.research-topics-panel){margin-top:1.5rem;padding-top:1.25rem;border-top:1px solid #dce4dc}
}
body.research-page section.research-chapter .research-tools-panel:not(.research-topics-panel) ul{margin:0 0 1.1rem;padding-left:1.1rem;font-size:.9375rem;line-height:1.5}
body.research-page section.research-chapter .research-tools-panel:not(.research-topics-panel) .research-method-row{display:block!important;border:0!important;padding:0!important}
body.research-page section.research-chapter .research-section-layout,body.research-page section.research-chapter .research-section-copy{display:block;width:100%}
/* Larger thumbnails next to each paper. */
body.research-page section.research-chapter .paper-with-thumbnail{grid-template-columns:minmax(0,1fr) 15rem!important;gap:2rem!important}
body.research-page section.research-chapter .paper-thumbnail img{max-height:9rem!important}
body.research-page section.research-chapter .research-tools-panel:not(.research-topics-panel) .research-method-row{margin-bottom:1.1rem}
body.research-page section.research-chapter .research-tools-panel:not(.research-topics-panel) li>ul{margin:.25rem 0}

/* Tighter vertical rhythm and smaller paper thumbnails. */
body.research-page section.research-chapter{padding:2rem 0!important}
body.research-page .platform-grid{gap:0}
body.research-page .scale-nav{margin-bottom:0}
body.research-page section.research-chapter .paper-with-thumbnail{grid-template-columns:minmax(0,1fr) 11rem!important;gap:1.5rem!important}
body.research-page section.research-chapter .paper-thumbnail img{max-height:6.5rem!important}
body.research-page section.research-chapter .research-topics-panel li{margin-bottom:0}

/* Same banded sections on Software, Experience and Contact. */
body:is(.software-page,.standard-page){overflow-x:clip}
body:is(.software-page,.standard-page) .detail-section{background:#fff}
body:is(.software-page,.standard-page) .detail-section>.wrap>.section-head{border-bottom:0;padding-bottom:1rem}
body.software-page section.software-chapter,body.standard-page .standard-panel{position:relative;z-index:0;overflow:visible!important;background:transparent!important;border:0!important;border-radius:0;box-shadow:none;padding:2rem 0!important;margin:0}
body.software-page section.software-chapter::before,body.standard-page .standard-panel::before{content:"";position:absolute;z-index:-1;top:0;bottom:0;left:50%;width:100vw;margin-left:-50vw;background:#fff}
body.software-page section.software-chapter:nth-of-type(even)::before,body.standard-page #research-experience::before{background:#f3f6f1}
body.software-page section.software-chapter h2,body.standard-page .standard-panel>h2,body.standard-page .standard-panel .panel-heading h2{padding-top:.9rem;border-top:3px solid #28533b;display:inline-block;min-width:8rem}
body.standard-page .standard-panel>h2,body.standard-page .standard-panel .panel-heading h2,body.software-page section.software-chapter h2{display:block;width:fit-content}

/* Type standard: titles 16/600, body 15/400, meta and labels 14, intro 16 at 1.5. */
body :is(.section-head,.software-intro,.contact-intro)>p{line-height:1.5!important}
body.experience-page .timeline-date{font-weight:600!important}
body.research-page section.research-chapter .research-tools-panel:not(.research-topics-panel) h3{font-size:.875rem!important;font-weight:600!important;letter-spacing:.1em!important;text-transform:uppercase!important;color:#3f7653!important;margin:0 0 .5rem!important}

/* Same gap under the tab bar and above the footer on every page. */
body.research-page .platform-grid{margin-top:1.5rem}

/* Phone and tablet: papers first, then the sensors and methods behind them. */
@media(max-width:999px){
 body.research-page section.research-chapter>.research-tools-tabs{display:flex;flex-direction:column}
 body.research-page section.research-chapter .research-topics-panel{order:1;margin-top:1rem}
 body.research-page section.research-chapter .research-tools-panel:not(.research-topics-panel){order:2;margin-top:1.5rem;padding-top:1.25rem;border-top:1px solid #dce4dc}
}

/* Phone: thumbnails go under the text, and tabs scroll sideways instead of clipping. */
@media(max-width:700px){
 body.research-page section.research-chapter .paper-with-thumbnail{grid-template-columns:minmax(0,1fr)!important;gap:.75rem!important}
 body.research-page section.research-chapter .paper-thumbnail{max-width:14rem}
}
@media(max-width:760px){
 body:is(.research-page,.software-page,.standard-page) :is(.scale-nav,.software-scale-nav,.standard-section-nav)>a,
 body:is(.research-page,.software-page,.standard-page) :is(.scale-nav,.software-scale-nav,.standard-section-nav).is-compact-section-nav>a{flex:0 0 auto!important;min-width:max-content;padding:.6rem .9rem}
}

/* Phone: tabs share the full width with small gaps and no sideways scrolling. */
@media(max-width:760px){
 body:is(.research-page,.software-page,.standard-page) :is(.scale-nav,.software-scale-nav,.standard-section-nav){overflow:visible!important;gap:.25rem!important;width:100%}
 body:is(.research-page,.software-page,.standard-page) :is(.scale-nav,.software-scale-nav,.standard-section-nav)>a,
 body:is(.research-page,.software-page,.standard-page) :is(.scale-nav,.software-scale-nav,.standard-section-nav).is-compact-section-nav>a{flex:1 1 0!important;min-width:0!important;width:0!important;padding:.5rem .15rem!important}
}
@media(max-width:600px){
 body:is(.research-page,.software-page,.standard-page) :is(.scale-nav,.software-scale-nav,.standard-section-nav)>a,
 body:is(.research-page,.software-page,.standard-page) :is(.scale-nav,.software-scale-nav,.standard-section-nav).is-compact-section-nav>a{flex-direction:column!important;gap:.2rem!important;height:auto!important;min-height:52px!important;font-size:.8125rem!important}
 body:is(.research-page,.software-page,.standard-page) :is(.scale-nav,.software-scale-nav,.standard-section-nav)>a :is(strong,.tab-label-short,.tab-label-phone,span:not(.research-category-icon):not(.section-nav-icon)){font-size:.8125rem!important;line-height:1.15!important;text-align:center}
}

/* One divider only under each area description (the tabs wrapper no longer draws its own). */
body.research-page section.research-chapter>.research-tools-tabs{border-top:0!important;margin-top:0!important}

/* Label the paper list the same way as the skills lists. */
body.research-page section.research-chapter .research-topics-panel::before{content:"Research and publications";display:block;margin:0 0 .6rem;font-size:.8125rem;font-weight:600;letter-spacing:.1em;text-transform:uppercase;color:#3f7653}

/* Phones up to 480px: text-only tabs on every page, to save screen height. */
@media(max-width:480px){
 body:is(.research-page,.software-page,.standard-page) :is(.scale-nav,.software-scale-nav,.standard-section-nav) :is(.research-category-icon,.section-nav-icon){display:none!important}
 body:is(.research-page,.software-page,.standard-page) :is(.scale-nav,.software-scale-nav,.standard-section-nav)>a,
 body:is(.research-page,.software-page,.standard-page) :is(.scale-nav,.software-scale-nav,.standard-section-nav).is-compact-section-nav>a{min-height:40px!important;justify-content:center;padding:.4rem .1rem!important}
 body:is(.research-page,.software-page,.standard-page) :is(.scale-nav,.software-scale-nav,.standard-section-nav)>a :is(strong,.tab-label-short,.tab-label-phone,span:not(.research-category-icon):not(.section-nav-icon)){font-size:.8125rem!important}
}

/* Bigger phones: icon and label on one line where the tab is wide enough. */
@media(min-width:481px) and (max-width:600px){
 body:is(.software-page,.standard-page) :is(.software-scale-nav,.standard-section-nav)>a,
 body:is(.software-page,.standard-page) :is(.software-scale-nav,.standard-section-nav).is-compact-section-nav>a{flex-direction:row!important;gap:.4rem!important;min-height:44px!important}
}
@media(min-width:481px) and (max-width:600px){
 body.research-page .scale-nav>a,body.research-page .scale-nav.is-compact-section-nav>a{flex-direction:row!important;gap:.3rem!important;min-height:44px!important}
}

/* ViWeed: app icon and a portrait workflow video beside the text. */
body.research-page section.research-chapter .viweed-paper{grid-template-columns:minmax(0,1fr) 19rem!important}
body.research-page .viweed-media{display:flex;align-items:flex-start;gap:1rem}
body.research-page .viweed-media .paper-thumbnail{flex:0 0 7rem;width:7rem}
body.research-page .viweed-media .paper-thumbnail img{max-height:7rem!important;object-fit:contain}
body.research-page .viweed-video{margin:0;flex:1 1 auto;min-width:0}
body.research-page .viweed-video video{display:block;width:100%;max-width:9rem;height:auto;max-height:16rem;background:#123743;object-fit:contain}
body.research-page .viweed-video figcaption{font-size:.875rem;color:#5c6d63;margin-top:.35rem}
@media(max-width:700px){
 body.research-page section.research-chapter .viweed-paper{grid-template-columns:minmax(0,1fr)!important}
 body.research-page .viweed-video video{max-width:11rem}
}
@media(max-width:700px){
 body.research-page .viweed-media{padding-left:var(--paper-gutter,1.25rem)}
 body.research-page .viweed-media .paper-thumbnail{margin-left:0!important}
}

/* ViWeed video: small poster that opens the video in a large window. */
body.research-page .viweed-media .paper-thumbnail{flex:0 0 5.5rem;width:5.5rem}
body.research-page .viweed-media .paper-thumbnail img{max-height:5.5rem!important}
body.research-page .viweed-play{position:relative;display:block;width:5rem;padding:0;border:1px solid #b8cbbb;background:#123743;cursor:pointer;line-height:0}
body.research-page .viweed-play img{display:block;width:100%;height:auto;max-height:none!important}
body.research-page .viweed-play-icon{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;background:rgba(18,55,67,.28)}
body.research-page .viweed-play-icon::before{content:"";width:2rem;height:2rem;border-radius:50%;background:#fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 7l9 5-9 5z' fill='%2328533b'/%3E%3C/svg%3E") center/70% no-repeat}
body.research-page .viweed-play:hover .viweed-play-icon{background:rgba(18,55,67,.1)}
body.research-page .viweed-play:focus-visible{outline:2px solid #28533b;outline-offset:3px}
body.research-page .viweed-video video{display:none}
body.research-page .viweed-video figcaption{max-width:6rem}
body.research-page .viweed-paper{grid-template-columns:minmax(0,1fr) 13rem!important}
.video-dialog{padding:0;border:0;background:#000;max-width:96vw;max-height:96vh;width:auto;overflow:hidden}
.video-dialog::backdrop{background:rgba(0,0,0,.8)}
.video-dialog video{display:block;max-width:96vw;max-height:92vh;width:auto;height:auto;background:#000}
.video-dialog-close{position:absolute;top:.5rem;right:.5rem;z-index:2;width:2.5rem;height:2.5rem;border:0;border-radius:50%;background:rgba(255,255,255,.9);color:#123743;font-size:1.6rem;line-height:1;cursor:pointer}
@media(max-width:700px){body.research-page .viweed-paper{grid-template-columns:minmax(0,1fr)!important}}
.video-dialog{width:fit-content;height:fit-content;margin:auto;inset:0}
.video-dialog video{aspect-ratio:720/1642;height:min(92vh,1642px);width:auto;max-width:96vw}
body.research-page .viweed-play{width:3.5rem}
body.research-page .viweed-play-icon::before{width:1.5rem;height:1.5rem}
body.research-page .viweed-video figcaption{max-width:none;font-size:.8125rem;white-space:nowrap}
body.research-page .viweed-media .paper-thumbnail{flex:0 0 4.5rem;width:4.5rem}
body.research-page .viweed-media .paper-thumbnail img{max-height:4.5rem!important}
body.research-page .viweed-paper{grid-template-columns:minmax(0,1fr) 10rem!important}
@media(max-width:700px){body.research-page .viweed-paper{grid-template-columns:minmax(0,1fr)!important}}
@media(max-width:700px){body.research-page .viweed-media{padding-left:.2rem}}

/* ViWeed thumbnails fill the same right-hand column as the other papers. */
body.research-page section.research-chapter .viweed-paper{grid-template-columns:minmax(0,1fr) 11rem!important;gap:2rem!important}
body.research-page .viweed-media{justify-content:space-between;align-items:flex-start;width:100%}
body.research-page .viweed-media .paper-thumbnail,body.research-page .viweed-video{flex:0 0 auto}
@media(max-width:700px){
 body.research-page section.research-chapter .viweed-paper{grid-template-columns:minmax(0,1fr)!important}
 body.research-page .viweed-media{justify-content:flex-start;gap:1.5rem;width:auto}
}
body.research-page .viweed-media .paper-thumbnail{margin-left:0!important}
body.research-page .viweed-video{width:3.75rem}
body.research-page .viweed-play{width:3.5rem;margin-left:auto}
@media(max-width:700px){body.research-page .viweed-video{width:auto}body.research-page .viweed-play{margin-left:0}}
body.research-page .research-chapter .paper-with-thumbnail>.viweed-media{margin-left:0!important;display:flex!important;list-style:none!important;padding-left:0}
@media(max-width:700px){body.research-page .research-chapter .paper-with-thumbnail>.viweed-media{padding-left:.2rem}}
@media(max-width:700px){body.research-page .research-chapter .paper-with-thumbnail>.viweed-media{padding-left:1.25rem}}
body.research-page .viweed-media .paper-thumbnail{flex:0 0 6.25rem!important;width:6.25rem!important}
body.research-page .viweed-media .paper-thumbnail img{max-height:6.25rem!important;width:100%;object-fit:contain}

/* Publications across platforms: thumbnails the same size as the research sections. */
@media(min-width:701px){
 body.research-page .cross-platform-publications li.paper-with-thumbnail{grid-template-columns:minmax(0,1fr) 11rem!important;gap:1.5rem!important}
 body.research-page .cross-platform-publications .paper-thumbnail{width:100%;margin-left:0}
 body.research-page .cross-platform-publications .paper-thumbnail img{max-height:6.5rem!important;width:100%;object-fit:contain;object-position:left top}
}

/* Every paper thumbnail uses the same 16:9 box; images that are not 16:9 fit inside it whole. */
body.research-page section.research-chapter .paper-with-thumbnail:not(.viweed-paper) .paper-thumbnail img,
body.research-page .cross-platform-publications .paper-with-thumbnail .paper-thumbnail img{width:100%!important;height:auto!important;max-height:none!important;aspect-ratio:16/9;object-fit:contain!important;object-position:center!important;background:#fff}

/* Centre each thumbnail's name under its image. */
body.research-page .paper-with-thumbnail:not(.viweed-paper) .paper-thumbnail,body.research-page .cross-platform-publications .paper-with-thumbnail .paper-thumbnail{text-align:center}
body.research-page .paper-with-thumbnail:not(.viweed-paper) .paper-thumbnail span,body.research-page .cross-platform-publications .paper-with-thumbnail .paper-thumbnail span{display:block;text-align:center}

/* MatchPlant walkthrough: a third preview tile that opens the video in a large window. */
body.software-page .matchplant-preview-pair{grid-template-columns:repeat(3,minmax(0,1fr));max-width:100%}
body.software-page .matchplant-play{position:relative;display:flex;align-items:flex-start;justify-content:center;box-sizing:border-box;width:100%;height:var(--preview-height,25rem);padding:.25rem;border:1px solid var(--tone-line,#b8cbbb);background:#fff;cursor:pointer;line-height:0}
body.software-page .matchplant-play img{display:block;width:100%;height:auto;max-height:100%;object-fit:contain}
body.software-page .matchplant-play .viweed-play-icon{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;background:rgba(18,55,67,.12)}
body.software-page .matchplant-play .viweed-play-icon::before{content:"";width:3.25rem;height:3.25rem;border-radius:50%;background:#fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 7l9 5-9 5z' fill='%2328533b'/%3E%3C/svg%3E") center/70% no-repeat;box-shadow:0 2px 8px rgba(0,0,0,.25)}
body.software-page .matchplant-play:hover .viweed-play-icon{background:rgba(18,55,67,.02)}
body.software-page .matchplant-play:focus-visible{outline:2px solid #28533b;outline-offset:3px}
.video-dialog-wide video{aspect-ratio:16/9;width:min(96vw,calc(92vh*16/9));height:auto;max-height:92vh}
@media(max-width:1100px){body.software-page .matchplant-preview-pair{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:760px){body.software-page .matchplant-preview-pair{grid-template-columns:minmax(0,1fr)}body.software-page .matchplant-play{height:auto;align-items:center;min-height:11rem}}

/* ViWeed demo: one thumbnail, the same size as the other papers' images. */
body.research-page .viweed-demo-thumb{display:block;padding:0;margin:0;border:0;background:none;font:inherit;color:inherit;cursor:pointer;text-align:center;width:100%}
body.research-page .viweed-thumb-frame{position:relative;display:block;line-height:0}
body.research-page .viweed-thumb-frame img{display:block;width:100%}
body.research-page .viweed-thumb-frame .viweed-play-icon{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;background:rgba(18,55,67,.18)}
body.research-page .viweed-thumb-frame .viweed-play-icon::before{width:2.25rem;height:2.25rem}
body.research-page .viweed-demo-thumb:hover .viweed-play-icon{background:rgba(18,55,67,.04)}
body.research-page .viweed-demo-thumb:focus-visible{outline:2px solid #28533b;outline-offset:3px}
body.research-page .viweed-demo-caption{display:block;margin-top:.35rem;font-size:.875rem;line-height:1.3;color:#28533b;text-decoration:underline;text-underline-offset:.2em;text-align:center}
body.research-page .paper-with-thumbnail .paper-thumbnail .viweed-thumb-frame .viweed-play-icon{position:absolute;inset:0;display:flex!important;align-items:center;justify-content:center}
body.research-page .paper-with-thumbnail .paper-thumbnail .viweed-thumb-frame .viweed-play-icon::before{display:block;content:"";width:2.25rem;height:2.25rem;border-radius:50%;background:#fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 7l9 5-9 5z' fill='%2328533b'/%3E%3C/svg%3E") center/70% no-repeat;box-shadow:0 2px 8px rgba(0,0,0,.25)}

/* One repeated row per paper: image on the left, text on the right, a line between rows. */
@media(min-width:701px){
 body.research-page section.research-chapter .related-papers.topic-papers li.paper-with-thumbnail,
 body.research-page .cross-platform-publications li.paper-with-thumbnail{display:grid!important;grid-template-columns:11rem minmax(0,1fr)!important;column-gap:1.5rem!important;align-items:start!important;padding:1.1rem 0!important}
 body.research-page section.research-chapter .related-papers.topic-papers li.paper-with-thumbnail>.paper-thumbnail,
 body.research-page .cross-platform-publications li.paper-with-thumbnail>.paper-thumbnail{grid-column:1;grid-row:1;justify-self:start;margin:0!important}
 body.research-page section.research-chapter .related-papers.topic-papers li.paper-with-thumbnail>.publication-copy,
 body.research-page .cross-platform-publications li.paper-with-thumbnail>.publication-copy{grid-column:2;grid-row:1;margin-left:0!important}
 body.research-page section.research-chapter .related-papers.topic-papers li.paper-with-thumbnail>.publication-copy::before,
 body.research-page .cross-platform-publications li.paper-with-thumbnail>.publication-copy::before{display:none}
}
body.research-page section.research-chapter .related-papers.topic-papers li{border-bottom:1px solid #dce4dc;padding:1.1rem 0}
body.research-page section.research-chapter .related-papers.topic-papers li:last-child{border-bottom:0}
body.research-page section.research-chapter .research-topics-panel .research-modern-focus>ul>li.research-topic-with-papers{border-bottom:1px solid #dce4dc}
body.research-page section.research-chapter .research-topics-panel .research-modern-focus>ul>li.research-topic-with-papers:last-child{border-bottom:0}

/* Papers and projects without an image line up with the text of the other rows. */
@media(min-width:701px){
 body.research-page section.research-chapter .related-papers.topic-papers li:not(.paper-with-thumbnail),
 body.research-page .cross-platform-publications li:not(.paper-with-thumbnail){display:grid!important;grid-template-columns:11rem minmax(0,1fr)!important;column-gap:1.5rem!important;padding:1.1rem 0!important}
 body.research-page section.research-chapter .related-papers.topic-papers li:not(.paper-with-thumbnail)>.publication-copy,
 body.research-page .cross-platform-publications li:not(.paper-with-thumbnail)>.publication-copy{grid-column:2;margin-left:0!important}
 body.research-page section.research-chapter .related-papers.topic-papers li:not(.paper-with-thumbnail)>.publication-copy::before,
 body.research-page .cross-platform-publications li:not(.paper-with-thumbnail)>.publication-copy::before{display:none}
 body.research-page section.research-chapter .research-topics-panel .research-modern-focus>ul>li:not(.research-topic-with-papers){padding:1.1rem 0 1.1rem calc(11rem + 1.5rem)!important;border-top:1px solid #dce4dc}
 body.research-page section.research-chapter .research-topics-panel .research-modern-focus>ul>li:not(.research-topic-with-papers)::before{display:none}
 body.research-page section.research-chapter .research-topics-panel .research-modern-focus>ul>li.research-topic-with-papers+li:not(.research-topic-with-papers){border-top:0}
}
@media(max-width:700px){
 body.research-page section.research-chapter .research-topics-panel .research-modern-focus>ul>li:not(.research-topic-with-papers){border-top:1px solid #dce4dc;padding-top:1.1rem;padding-bottom:1.1rem}
 body.research-page section.research-chapter .research-topics-panel .research-modern-focus>ul>li.research-topic-with-papers+li:not(.research-topic-with-papers){border-top:0}
 body.research-page section.research-chapter .research-topics-panel .research-modern-focus>ul>li:not(.research-topic-with-papers)::before{top:1.65rem}
}

/* Images on the right, text on the left; every row has a bullet and a divider. */
@media(min-width:701px){
 body.research-page section.research-chapter .related-papers.topic-papers li.paper-with-thumbnail,
 body.research-page .cross-platform-publications li.paper-with-thumbnail{grid-template-columns:minmax(0,1fr) 11rem!important}
 body.research-page section.research-chapter .related-papers.topic-papers li.paper-with-thumbnail>.paper-thumbnail,
 body.research-page .cross-platform-publications li.paper-with-thumbnail>.paper-thumbnail{grid-column:2;justify-self:end}
 body.research-page section.research-chapter .related-papers.topic-papers li.paper-with-thumbnail>.publication-copy,
 body.research-page .cross-platform-publications li.paper-with-thumbnail>.publication-copy{grid-column:1}
 body.research-page section.research-chapter .related-papers.topic-papers li:not(.paper-with-thumbnail),
 body.research-page .cross-platform-publications li:not(.paper-with-thumbnail){grid-template-columns:minmax(0,1fr)!important}
 body.research-page section.research-chapter .related-papers.topic-papers li:not(.paper-with-thumbnail)>.publication-copy,
 body.research-page .cross-platform-publications li:not(.paper-with-thumbnail)>.publication-copy{grid-column:1}
 body.research-page section.research-chapter .research-topics-panel .research-modern-focus>ul>li:not(.research-topic-with-papers){padding:1.1rem 0 1.1rem var(--paper-gutter)!important}
 body.research-page section.research-chapter .research-topics-panel .research-modern-focus>ul>li:not(.research-topic-with-papers)::before{display:block;top:1.65rem}
}
body.research-page section.research-chapter .related-papers.topic-papers li>.publication-copy,
body.research-page .cross-platform-publications li>.publication-copy{margin-left:var(--paper-gutter,1.25rem)!important;position:relative}
body.research-page section.research-chapter .related-papers.topic-papers li>.publication-copy::before,
body.research-page .cross-platform-publications li>.publication-copy::before{display:block!important;content:"";position:absolute;left:calc(-1 * var(--paper-gutter,1.25rem));top:.58em;width:var(--paper-dot,.3rem);height:var(--paper-dot,.3rem);border-radius:50%;background:#3f7653}
@media(min-width:701px){
 body.research-page section.research-chapter .research-topics-panel .research-modern-focus>ul>li:not(.research-topic-with-papers){padding-left:0!important}
 body.research-page section.research-chapter .research-topics-panel .research-modern-focus>ul>li:not(.research-topic-with-papers)::before{left:calc(-1 * var(--paper-gutter,1.25rem))}
}

/* One photo per research area, placed where the column would otherwise be empty. */
body.research-page .area-photo{display:none}
/* Phones and tablets: the photo follows the area's content in a single column. */
@media(max-width:999px){
 body.research-page .area-photo{display:block;position:static;margin:1.5rem 0 0;max-width:26rem}
 body.research-page .area-photo img{display:block;width:100%;height:auto;aspect-ratio:4/3;object-fit:cover;background:#fff}
 body.research-page .area-photo-field img{aspect-ratio:3/4;object-position:center 25%}
 body.research-page .area-photo-satellite img{aspect-ratio:3/4;object-fit:contain}
 body.research-page .area-photo-uav img{aspect-ratio:16/9}
 body.research-page .area-photo figcaption{margin-top:.5rem;font-size:.875rem;line-height:1.4;color:#5c6d63}
}
@media(min-width:1000px){
 body.research-page section.research-chapter{grid-template-rows:auto auto 1fr!important}
 body.research-page section.research-chapter .research-topics-panel{grid-row:1/4!important}
 body.research-page .area-photo{display:block;grid-column:1;grid-row:3;align-self:start;position:sticky;top:10rem;margin:1.5rem 0 0;width:100%}
 body.research-page .area-photo img{display:block;width:100%;aspect-ratio:4/3;object-fit:cover;background:#fff}
 body.research-page .area-photo-field img{aspect-ratio:3/4;object-position:center 25%}
 body.research-page .area-photo-satellite img{aspect-ratio:3/4;object-fit:contain}
 body.research-page .area-photo figcaption{margin-top:.5rem;font-size:.875rem;line-height:1.4;color:#5c6d63}
}
@media(min-width:1000px){
 body.research-page .area-photo-uav img{aspect-ratio:16/9}
 body.research-page .area-photo{margin-top:1.25rem}
}

/* Open-source tools: three flagship entries above the scale tabs; plain rows, not cards. */
body.research-page .research-flagship{margin:2rem 0 1.75rem}
body.research-page .research-flagship h2{margin:0 0 .75rem;font-size:1.25rem;line-height:1.3;color:#28533b}
body.research-page .research-flagship ul{list-style:none;margin:0;padding:0;border-top:1px solid #dce4dc}
body.research-page .research-flagship li{border-bottom:1px solid #dce4dc}
body.research-page .research-flagship a{display:grid;gap:.15rem;padding:.9rem 0;min-height:44px;color:inherit;text-decoration:none}
body.research-page .research-flagship strong{font-size:1.125rem;line-height:1.3;color:#123743;text-decoration:underline;text-decoration-color:#b8cbbb;text-underline-offset:.2em}
body.research-page .research-flagship a:hover strong{text-decoration-color:#28533b}
body.research-page .research-flagship a:focus-visible{outline:2px solid #28533b;outline-offset:2px}
body.research-page .research-flagship .flagship-scale{font-size:.875rem;font-weight:600;color:#3f7653}
body.research-page .research-flagship .flagship-line{font-size:.9375rem;line-height:1.45;color:#5c6d63}
@media(min-width:760px){
 body.research-page .research-flagship ul{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));column-gap:2rem;border-bottom:1px solid #dce4dc}
 body.research-page .research-flagship li{border-bottom:0}
}

/* Small type floor: badges and captions no smaller than 13px. */
body.research-page .research-status{font-size:.8125rem}
body.research-page .paper-thumbnail span,body.research-page .research-chapter figcaption,body.research-page .viweed-demo-caption{font-size:.875rem!important}

/* Reading measure: running text stops at about 70 characters on wide screens. */
body.research-page main p:not(.section-head p){max-width:70ch}
body.research-page .cross-platform-section .methods-band p{max-width:none;padding-right:max(1.5rem,calc(100% - 70ch - 1.5rem))}

/* APS photo sits inside the soil aggregate entry as a small image, caption to its right. */
body.research-page section#xct li>.area-photo{display:flex;align-items:flex-start;gap:1rem;position:static;grid-column:auto;grid-row:auto;width:100%;max-width:none;margin:.75rem 0 0}
body.research-page section#xct li>.area-photo img{flex:0 0 13rem;width:13rem;height:auto;aspect-ratio:4/3;object-fit:cover;object-position:50% 55%}
body.research-page section#xct li>.area-photo figcaption{flex:1 1 0;min-width:0;margin:0;font-size:.875rem;font-weight:400;line-height:1.4;color:#5c6d63}
@media(max-width:700px){
 body.research-page section#xct li>.area-photo img{flex-basis:9rem;width:9rem}
}
body.research-page .viweed-inline-video{margin:.75rem 0 0;max-width:10rem}
body.research-page .viweed-inline-play{position:relative;display:block;width:100%;padding:0;border:0;background:#123743;cursor:pointer}
body.research-page .viweed-inline-play img{display:block;width:100%;height:auto;aspect-ratio:16/9;object-fit:cover}
body.research-page .viweed-inline-icon{position:absolute;top:50%;left:50%;width:2.5rem;height:2.5rem;margin:-1.25rem 0 0 -1.25rem;border-radius:50%;background:#fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 7l9 5-9 5z' fill='%2328533b'/%3E%3C/svg%3E") center/70% no-repeat}
body.research-page .viweed-inline-play:focus-visible{outline:2px solid #28533b;outline-offset:2px}
body.research-page .viweed-inline-video figcaption{font-size:.875rem;color:#5c6d63;margin-top:.35rem}
body.research-page #paper-1 .paper-thumbnail img,body.research-page .paper-thumbnail img[src*="fira-2026"]{background:transparent!important}
