@import url('./home-responsive.css?v=ornament-5');
@import url('./studies-responsive.css?v=book-continuity-2');

.research-row{display:contents}

@media(max-width:1100px){
 body:has(.figma-stage){height:100dvh;overflow:hidden}
 .figma-stage,.figma-stage:has(#film:not([hidden])){position:relative!important;inset:0!important;width:100%!important;height:100dvh!important;transform:none!important;overflow:hidden!important}
 .figma-screen,.figma-screen>div,#film,#film>div{width:100%!important;height:100dvh!important;min-width:0}
 .figma-screen>div{position:relative!important}
 .figma-screen .brand-link{left:16px!important;top:10px!important;width:auto!important;height:34px!important;display:flex!important;align-items:center;z-index:12}
 .figma-screen .brand-link p{font-size:16px!important;line-height:1.2!important}
 .figma-screen .brand-flourish{left:16px!important;top:20px!important}
 .figma-screen .topnav{position:absolute;top:50px;left:16px;right:16px;height:auto;min-height:44px;display:flex;flex-wrap:wrap;justify-content:flex-start;align-items:center;gap:4px 10px;z-index:12}
 .figma-screen .topnav .aligned-topbar-link{display:flex!important;align-items:center;justify-content:center;min-height:44px;padding:8px 5px;max-width:100%}
 .figma-screen .aligned-topbar-link,.figma-screen .aligned-topbar-link p{font-size:12px!important;line-height:1.25!important;letter-spacing:.02em}
 .figma-screen>div>[data-name="Vector"]{display:none}

 #research [data-name="Research — scrollable index"]{position:absolute!important;inset:var(--responsive-header-height,150px) 0 0!important;width:100%!important;height:auto!important;padding:28px 24px 48px!important;overflow:auto!important;overscroll-behavior:contain}
 #research .research-lead{position:static!important;inset:auto!important;width:min(100%,850px)!important;height:auto!important;margin:0 0 38px!important;font-size:clamp(30px,4.6vw,46px)!important;line-height:1.15!important;white-space:normal!important}
 #research .research-column-heading,#research .research-divider{display:none!important}
 #research .research-row{display:grid;grid-template-columns:76px minmax(0,1fr) minmax(170px,.48fr);align-items:start;gap:20px;padding:24px 0;border-top:1px solid rgba(53,37,63,.35)}
 #research .research-row>:is(.research-number-year,.research-entry,.research-source){position:static!important;inset:auto!important;width:100%!important;height:auto!important;min-width:0;transform:none!important;white-space:normal!important}
 #research .research-number-year{display:flex;flex-wrap:wrap;gap:6px}
 #research .research-number-year p{margin:0!important;line-height:1.3!important}
 #research .research-entry>p:first-child{font-size:24px!important;line-height:1.25!important}
 #research .research-entry>p:nth-child(3){font-size:var(--body-size)!important;line-height:var(--body-leading)!important;margin-top:16px!important}
 #research .research-source{padding:12px!important}
 #research .research-source p{font-size:13px!important;line-height:1.5!important;overflow-wrap:anywhere}
 #research .research-source p:last-child{min-height:44px;display:inline-flex!important;align-items:center;margin-top:12px!important}

 #words .words-gallery,#words.filters-closed .words-gallery{position:absolute;inset:calc(var(--responsive-header-height,150px) + 60px) 0 0;width:100%;height:auto;padding:12px 20px 36px;overflow:auto;transition:none;overscroll-behavior:contain}
 #words .words-grid,#words.filters-closed .words-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:28px 20px}
 #words .words-filter-open{position:absolute!important;left:20px!important;top:calc(var(--responsive-header-height,150px) + 8px)!important;min-height:44px;padding:10px 12px!important;z-index:15}
 #words-filter-panel{position:absolute!important;inset:var(--responsive-header-height,150px) auto 0 0!important;width:min(100%,480px)!important;height:auto!important;padding:0!important;z-index:20;background:#f3a5de;display:block!important;overflow:auto!important;overscroll-behavior:contain}
 #words-filter-panel>[data-node-id="92:98"],#words-filter-panel [data-node-id="40:140"]{display:block!important;position:relative!important;width:100%!important;height:100%!important;padding:0!important;overflow:visible!important}
 #words [data-name="Collected Words — Left panel"]{position:relative!important;width:100%!important;height:auto!important;min-height:100%!important;overflow:visible!important}
 #words [data-name="Collected Words — Left panel"]>img,#words [data-node-id="40:74"]{display:none}
 #words [data-node-id="40:72"]{inset:22px auto auto 20px!important;width:auto!important;max-width:calc(100% - 90px)!important}
 #words .word-filter-stack{position:relative!important;inset:auto!important;width:100%!important;padding:78px 20px 32px;gap:26px}
 #words .word-filter-row{gap:8px}
 #words .word-filter{min-height:38px!important;padding:8px 10px!important;border-radius:0!important;max-width:100%!important}
 #words .word-filter p{white-space:normal!important;line-height:1.3!important}
 #words .words-filter-close{position:absolute!important;inset:22px 12px auto auto!important;width:auto!important;height:auto!important;min-height:0!important;padding:4px 5px!important;z-index:21}
 #words [data-node-id="40:98"]{min-height:44px!important;padding:10px!important}
 #words .word-open>img{height:auto;min-height:110px;object-fit:contain}
 .word-viewer{width:calc(100vw - 24px)!important;max-height:calc(100dvh - 24px)!important;padding:12px 0}
 .word-viewer-actions{gap:16px;flex-wrap:wrap;margin-top:20px}
 .word-viewer-actions button{min-height:44px;padding:10px 14px!important;line-height:1.3!important}
 .passage-reader{width:min(760px,calc(100vw - 24px))!important;max-width:calc(100vw - 24px)!important;height:min(var(--passage-fit-height,620px),calc(100dvh - 24px))!important;max-height:calc(100dvh - 24px)!important;padding:0 20px 28px!important}
 .passage-toolbar{align-items:flex-start;gap:12px;margin:0 -20px!important;padding:12px!important}
 .passage-toolbar nav{gap:4px 8px}
 .passage-reader .passage-toolbar button{min-height:44px;padding:8px!important;line-height:1.3!important}
 .passage-reader .passage-back{flex-shrink:0}
 .passage-text h2{font-size:24px!important}
 .passage-row p{font-size:var(--body-size)!important;line-height:var(--body-leading)!important}
 #summary [data-name="Interview navigation — left tabs"]{position:absolute!important;inset:var(--responsive-header-height,150px) 0 auto!important;width:100%!important;height:auto!important;display:flex!important;flex-flow:row wrap!important;gap:6px!important;padding:8px 12px!important;background:var(--highlight)!important;transform:none!important}
 #summary [data-name="Interview navigation — left tabs"]>a{width:auto!important;min-height:44px;height:auto!important;padding:10px!important;background:var(--plum)!important}
 #summary [data-name="Interview navigation — left tabs"]>a p{font-size:15px!important;color:#f0dbe8!important}
 #summary [data-name="Summary — scrollable content"]{position:absolute!important;inset:calc(var(--responsive-header-height,150px) + var(--responsive-tabs-height,60px)) 0 0!important;width:100%!important;height:auto!important;overflow:auto!important}
 #summary [data-name="Summary — content"]{position:relative!important;inset:auto!important;width:100%!important;height:auto!important;padding:24px!important;overflow:visible!important}
 #summary [data-name^="Question"],#summary [data-name^="Question"]>*{width:100%!important;max-width:760px!important}
 #summary [data-name^="Question"] p{max-width:100%!important;white-space:normal!important}
}

@media(max-width:700px){
 #research [data-name="Research — scrollable index"]{padding:26px 20px 40px!important}
 #research .research-lead{font-size:32px!important;margin-bottom:30px!important}
 #research .research-row{grid-template-columns:minmax(0,1fr);gap:18px;padding:24px 0}
 #research .research-number-year{gap:6px}
 #research .research-entry>p:first-child{font-size:24px!important}
 #research .research-source{width:100%!important}
 #words .words-grid,#words.filters-closed .words-grid{grid-template-columns:minmax(0,1fr)}
 #words .word-metadata{grid-template-columns:minmax(0,.4fr) minmax(0,1fr)}
 .passage-toolbar{flex-wrap:wrap}
 .passage-toolbar .passage-back{margin-left:auto}
}

.site-brand{display:flex;align-items:center;flex:none;width:max-content;min-height:40px;margin:0;font:400 14px/1.3 var(--font-nav)!important;letter-spacing:.015em!important;white-space:nowrap;color:#78efb0;text-decoration:none}
.figma-home .home-small-brand.site-brand{height:40px!important;font:400 14px/1.3 var(--font-nav)!important;letter-spacing:.015em!important}
.site-brand:is(:hover,:focus-visible){color:#e5ef70}
.site-header{position:absolute;z-index:20;top:0;left:50%;transform:translateX(-50%);display:flex;align-items:flex-start;justify-content:space-between;gap:24px;width:100%;max-width:1600px;padding:24px clamp(24px,3vw,48px) 16px;border-bottom:1px solid transparent;background:#35253f}
.figma-screen>div>[data-name="Vector"]{display:none!important}
.site-header .topnav{position:static;display:flex;align-items:center;justify-content:flex-end;flex-wrap:wrap;gap:4px 16px;min-width:0;min-height:40px;margin:0}
.site-header .topnav .aligned-topbar-link{position:static!important;inset:auto!important;display:flex!important;align-items:center;width:auto!important;height:auto!important;min-height:40px;padding:6px!important;white-space:nowrap}
.site-header .aligned-topbar-link,.site-header .aligned-topbar-link p{font:400 14px/1.25 var(--font-nav)!important;letter-spacing:.02em}
@media(min-width:1101px){
 .figma-stage,.figma-stage:has(#film:not([hidden])),.figma-stage:has(#fengqin:not([hidden])){height:var(--interview-viewport-height,766px)!important}
 .figma-screen:is(#mom,#grandma,#aunt1,#aunt2,#xiaomin,#xiaosheng,#zhengjuan,#fanghanqin,#fengqin,#film,#summary,#reflection,#research,#words),.figma-screen:is(#mom,#grandma,#aunt1,#aunt2,#xiaomin,#xiaosheng,#zhengjuan,#fanghanqin,#fengqin,#film,#summary,#reflection,#research,#words)>div{height:var(--interview-viewport-height,766px)!important}
 .figma-screen:is(#mom,#grandma,#aunt1,#aunt2,#xiaomin,#xiaosheng,#zhengjuan,#fanghanqin,#fengqin,#film,#summary,#reflection,#research) [data-name*="scrollable"]{top:54px!important;bottom:auto!important;height:calc(var(--interview-viewport-height,766px) - 54px)!important}
 #words .words-gallery{height:calc(var(--interview-viewport-height,766px) - 54px)!important}
}
@media(max-width:1100px){
 .site-header{flex-wrap:wrap;gap:10px 24px}
 .site-header .topnav{flex-basis:100%;justify-content:flex-start;min-height:44px;gap:4px 10px}
 .site-header .topnav .aligned-topbar-link{min-height:44px;padding:8px 5px!important}
 .site-header .aligned-topbar-link,.site-header .aligned-topbar-link p{font-size:12px!important}
}
@media(max-width:860px){
 .site-header{padding:18px 24px 16px}
 .site-header::after{left:24px;right:24px}
}
@media(max-width:600px){
 .site-header{padding:12px 18px 12px}
 .site-header::after{left:18px;right:18px}
 .site-brand,.figma-home .home-small-brand.site-brand{font-size:13px!important}
}

.site-header .section-dropdown{position:relative;display:flex;align-items:center;max-width:100%;color:#78efb0}
.site-header .topnav>.aligned-topbar-link{color:#78efb0}
.site-header .section-dropdown>.aligned-topbar-link{color:inherit}
.site-header .aligned-topbar-link:is(:hover,:focus-visible){background:transparent;color:var(--highlight)}
.site-header .aligned-topbar-link[aria-current="page"],.site-header .section-dropdown:has(>a[aria-current="page"]),.site-header .section-dropdown.is-open{color:var(--highlight)}
.section-dropdown-toggle{display:flex;align-items:center;justify-content:center;flex:none;width:24px;min-height:40px;margin:0;padding:6px;border:0;background:transparent;color:inherit;cursor:pointer}
.section-dropdown-toggle::after{content:"";width:6px;height:6px;margin:0 0 4px;border-right:1px solid currentColor;border-bottom:1px solid currentColor;transform:rotate(45deg)}
.section-dropdown-toggle[aria-expanded="true"]::after{margin-top:4px;transform:rotate(225deg)}
.section-dropdown-toggle:is(:hover,:focus-visible){color:var(--highlight)}
.section-dropdown-toggle:focus-visible{outline:1px solid #78efb0;outline-offset:1px}
.section-dropdown .section-dropdown-menu{position:absolute;z-index:30;top:calc(100% + 6px);right:0;display:grid;gap:2px;width:min(360px,calc(100vw - 36px));max-height:min(480px,calc(100dvh - var(--interview-header-height,140px) - 20px));margin:0;padding:8px;overflow-x:hidden;overflow-y:auto;overscroll-behavior:contain;background:var(--highlight);box-sizing:border-box}
.section-dropdown-menu>:is(a,button){display:block;width:100%;min-height:36px;margin:0;padding:8px 10px;border:0;border-radius:0;background:transparent;color:var(--plum);font:400 14px/1.4 var(--font-nav);text-align:left;cursor:pointer}
.section-dropdown-menu :is(div,p){position:static;inset:auto;width:auto;height:auto;margin:0;padding:0;background:transparent;color:inherit;font:inherit;white-space:normal}
.section-dropdown-menu>:is(a,button):is(:hover,:focus-visible){outline:none;background:var(--plum);color:#78efb0}
.section-dropdown-menu>[aria-current="page"]{background:var(--plum);color:var(--highlight);font-weight:700}
@media(max-width:1100px){.section-dropdown .section-dropdown-menu{position:fixed;top:calc(var(--interview-header-height,140px) - 8px);left:clamp(18px,3vw,24px);right:auto}.section-dropdown-toggle{min-height:44px}}
@media(max-width:600px){.section-dropdown-menu>:is(a,button){font-size:13px}}

.interview-linked-scroll :is([data-name*="scrollable"],[data-name="Family photographs — original proportions"],[data-name="Interview — editable questions and answers"],.aunt2-responsive-content){scrollbar-width:none!important}
.interview-linked-scroll :is([data-name*="scrollable"],[data-name="Family photographs — original proportions"],[data-name="Interview — editable questions and answers"],.aunt2-responsive-content)::-webkit-scrollbar{display:none;width:0;height:0}
